Found it! It must look like this, putting =404 as last location in try_files: location ~ ^/img/[^\.]*$ { try_files $uri.png $uri.jpg $uri.gif $uri =404; error_page 404 /img/missing; } That would be useful information to put in the try_files wiki...by monster - Nginx Mailing List - English
Hi! Just started with Nginx after reading it reached 1.0. Congratulation! I'm trying to get my test site to return a "missing image" icon when an image is missing, but have a 404 logged so I know I messed up something. I want to specify the images name without file extensions, in case I move some from PNG to JPG, or the other way around. My problem is that try_files doc says last pathby monster - Nginx Mailing List - English
Hallo. I have decided to try nginx after seeing it move to version 1.0. I've read people saying the XSLT module is great, so I tried to use it. Unfortunately my dev machine is Windows. The default Windows binary does not seem to include "--with-http_xslt_module" so I had to first install cygwin and "guess" the required cygwin components until nginx compiled, which it did eventuby monster - How to...