Question
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.
×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.
×index
directive is set to index.php index.html
(e.g.: index index.php index.html;
) in your nginx's virtual host config.This is the step that I’ve done and it’s work:
sudo chown -R www-data:www-data /usr/share/nginx/html/*
sudo chmod -R 0755 /usr/share/nginx/html/*
This step is done on Ubuntu 14.04
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.
Hi what is this I have no idea for its