nginx 403 forbidden ...
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×
A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
indexdirective is set to
index index.php index.html;) in your nginx's virtual host config.
Everything could be okay with your permissions. In my case, I got the same just because of wrong config. For example no or wrong php settings, no index.php as a root file or even wrong root folder.
Also your problem could be caused “sudo chmod 755 /var/www”, because it doesn’t contain -R flag. That’s important too.