Welcome! Log In Create A New Profile

Advanced

Re: Questions about proxy_pass and internal directives

October 18, 2012 06:18PM
Hello Reinis,

Thanks for pointing that out. Just to make sure I understand the doc correctly for my case.

Given that: location /foo/bar/ (directive with conventional strings) and location ~* (\.jpg|\.png|\.css|\.js|\.html)$ (regular expressions). The /foo/bar/ location is actually checked and matched first, however, since I don't have a '^~' prefix in front of /foo/bar/, the search continues with regex match and matches with location ~* (\.jpg|\.png|\.css|\.js|\.html)$. In the end, it is the regex location directive that is used by nginx.

So to correct the problem, I simply need to add a prefix '^~' in front of /foo/bar/ to stop the search once matched.

Please correct me if I get anything wrong. Thanks.
SubjectAuthorPosted

Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 03:28PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 03:54PM

Re: Questions about proxy_pass and internal directives

VBartOctober 18, 2012 04:24PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 04:32PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 04:56PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 06:18PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 06:48PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 07:38PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 08:08PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 08:38PM

Re: Questions about proxy_pass and internal directives

VBartOctober 18, 2012 08:40PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 09:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready