Case insensitive location

Callumpy nginx-forum at
Fri Apr 11 18:42:29 UTC 2014

Oh my, what an idiot i've been. Thank you very much for your post!

I moved it up above my cache and it works just fine, here is what i've been
able to shorten it down to now:

 location ~* /card/ {
                rewrite (?i)^/card/([a-zA-Z0-9_+]+)/(.*).png$
                expires epoch;

Thank you to everyone who posted to help me, it's greatly appreciated!

Posted at Nginx Forum:,249105,249235#msg-249235

More information about the nginx mailing list