Re: Case insensitive location

2014-04-11 Thread Callumpy
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$ /card.php?name=$2&type=$1;

Re: Case insensitive location

2014-04-11 Thread Valentin V. Bartenev
On Friday 11 April 2014 07:59:42 Callumpy wrote: > 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 ~*

Re: Case insensitive location

2014-04-11 Thread mex
do you have tryfiles enabled? i'd try this to check, if the request reaches the nright location-block location ^~ /card/ { ... access_log /var/log/nginx/cards.log combined; ... } if so, your must look inside your locatiuon, if not, somwhere else regar

Re: Case insensitive location

2014-04-11 Thread Callumpy
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

Re: Case insensitive location

2014-04-08 Thread B.R.
I do not know about caching nor do I take it into consideration as it is not part of the problem as stated. You stated that the location regex was the problem and you seem to have taken the proper checks to verify the proper location is being used, hence I assume the location regex is not the prob

Re: Case insensitive location

2014-04-08 Thread Callumpy
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

Re: Case insensitive location

2014-04-08 Thread B.R.
As the location docsspecifies, the solution you provided should work. Ensure that: 1°) You are working with the right binary 2°) Configuration syntax is correct (nginx -t) and reload was successful (no message in that direction in t

Case insensitive location

2014-04-08 Thread Callumpy
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/([a-zA-Z0-9_+]+)/(.*).png$ /card.php?name=$2&type=