Help with rewrite rule

Ilan Berkner ilan at
Mon Jan 2 02:20:23 UTC 2012

I'm trying to rewrite any png files referenced through the fancybox sub
directory to a directory off of the images folder as follows:

rewrite ^/fancybox/(.+\.png)$ /images/fancybox/$1 last;

This is not working, probably b/c my regex is off the mark.  Any

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list