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/(+)/(.*).png$ /card.php?name=$2&type=$1; expires epoch; } Thank you to everyone who posted to help me, it's greatly appreciated!by Callumpy - Nginx Mailing List - English
I'm still having no luck with it. As I said before, when I use location ~* ^/card/, it just 404s all the time unless I disable my cache. Here is my cache code, I have no idea why it does this. # Cache setup. location ~* \.(jpg|jpeg|png|gif|ico|css|xml|js|woff)$ { expires 30d; root /home/site/public; add_header Pragma public;by Callumpy - Nginx Mailing List - English
Thank you for the reply. As far as I know, everything is fine, but it's still not working for me. When I disable caching, which includes pngs, and then use 'location ~* ^/card', I am able to access the images normally without capital letters, but still not with capitals. With caching enabled, I cannot access images at all with the 'location ~* ^/card' setup. Caching is the main reasonby Callumpy - Nginx Mailing List - English
Hello there, i'm hoping someone can help me out with this. I've tried many different things but none have worked for me so far. Here is my location block: location ^~ /card/ { root /home/site/public; rewrite ^/card/(+)/(.*).png$ /card.php?name=$2&type=$1 last; expires epoch; } Some requests for images are being made with a caby Callumpy - Nginx Mailing List - English
I randomly found a solution. I used the following: location ^~ /image { rewrite ^/image/(+)/(+)\.png$ /img/image.php?style=$1&user=$2 last; expires epoch; }by Callumpy - How to...
Hey, I posted for help on stackoverflow quite a while back and got no reply, so i'm hoping some of you guys can help me out. You can see my post here: http://stackoverflow.com/questions/19434656/stop-caching-images-on-a-rewrite-with-nginx On my site I am using PHP to generate images with different options for styles. The images are requested like this: "/img/image.php?user=NAME&stylby Callumpy - How to...