Conflict: index and try_files

janedenone nginx-forum at
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

Posted at Nginx Forum:,218562,218744#msg-218744

More information about the nginx mailing list