Im trying to run my wordpress site but while trying to access the login panel for it, generated a 403 forbidden error I dont know how to rectify my problem. I tried googling and found answers like check permissions or the owners, SymLinks etc. but everything is fine all my ownerships are set to www-data and also the permissions are set 755 for directories and 644 for files. I dont know what can be the issue.
I got the issue solved it was due to cdn or Content Delivery Network
For more info see
It works as a cache and forwards my requests to webserver
To solve the above problem add the lines in .htaccess file
Replace x.x.x.x with your IP you want to give access to.
Add this line in the main .htaccess file which is present at root directory of website and also in the .htaccess file present in the wp-admin directory
I hope it helps anyone with the same problem