Conflict: index and try_files

janedenone nginx-forum at nginx.us
Tue Nov 22 13:55:59 UTC 2011


Thanks again for the helpful hint. I noticed that it seems to be
possible to remove the $uri part –

try_files $uri/ $uri.html =404;

– and URLs like /image.jpg, /style.css etc are still found. I would
expect that these requests return 404, because nginx tries image.jpg/
and then image.jpg.html, but not the actual $uri. Am I missing
something?

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



More information about the nginx mailing list