Welcome! Log In Create A New Profile

Advanced

Case insensitive location

April 08, 2014 08:55AM
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=$1 last;
expires epoch;
}

Some requests for images are being made with a capital 'C' in 'Card' and are causing 404s.

I've tried changing the location to "~* ^/card/" but that didn't work, is there anything else I could try?

Thanks in advance.
Subject Author Posted

Case insensitive location

Callumpy April 08, 2014 08:55AM

Re: Case insensitive location

B.R. April 08, 2014 09:34AM

Re: Case insensitive location

Callumpy April 08, 2014 12:52PM

Re: Case insensitive location

B.R. April 08, 2014 01:20PM

Re: Case insensitive location

Callumpy April 11, 2014 07:59AM

Re: Case insensitive location

Valentin V. Bartenev April 11, 2014 09:24AM

Re: Case insensitive location

Callumpy April 11, 2014 02:42PM

Re: Case insensitive location

mex April 11, 2014 09:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready