|
Answer» Nginx web server, permission denied when accessing index.html
Hi everyone. I'm having a problem with Nginx. When I type in the internal IP address for my web server (which is 192.168.0.100), it says "500 Internal Server Error."
The first site is literally called 'localhost' and is accessible from localhost. Its root is '/server/localhost/public_html'. The second site is called 'gregcoleman' and its root is '/server/gregcoleman/public_html'. The server has nginx 1.2.1 on Debian.
I'm not REALLY experienced with Linux, and it seems I've somehow messed up the permissions. When I set the root of the site to '/usr/share/nginx/www', it works perfectly and I get "Welcome to nginx!" but when I set the root to '/server/localhost/public_html', that's when I get the 500 internal server error. According to the log, nginx is getting access denied.
I've posted the logs in code tags below. If someone could help me FIND out what's wrong, that would be great.
Edit: I've taken the logs out because code tags aren't PARSING, and I don't want to flood the post.
[recovering DISK space, attachment deleted by admin]
|