403 Error with hostname, but not IP

Ensiferous nginx-forum at nginx.us
Fri Aug 26 04:23:26 UTC 2011


In your try_files in location / you have $uri/ as your second option.
This means that it will try to read the URI as a directory. Since you do
not have an index directive defined it will instead try to list the
content of the directory, which is not allowed by default.

You need to define an index directive
http://wiki.nginx.org/HttpIndexModule#index either in your location
block or further up.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214315,214317#msg-214317

More information about the nginx mailing list