try_files and filter modules

Valentin V. Bartenev ne at
Mon Feb 13 14:07:31 UTC 2012

On Monday 13 February 2012 17:55:35 Reinis Rozitis wrote:
> p.s. the files indeed didn't exist (expected) but the request always
> returned the source/original file (without cropping it), but now with the
> additional 404 it works nicely.

It was handled by another location. The last part in the try_files directive 
always does internal redirect (to $1/large_$2 in your case, so then it didn't 
catch by "location ~ (.*)/small_(.*)").

 wbr, Valentin V. Bartenev

More information about the nginx mailing list