Welcome! Log In Create A New Profile

Advanced

Re: A Challenging Config

Maxim Dounin
June 26, 2012 02:46AM
Hello!

On Tue, Jun 26, 2012 at 01:35:59PM +1000, SplitIce wrote:

> Ok thanks, my problem isnt with the matching order (bad explination on my
> part) but more with the matching procedure
>
> e.g
>
> location ~ to_cache {
> proxy_cache ....;
> proxy_pass ....;
> }
>
> location ~ not_to_cache {
> proxy_cache off;
> proxy_pass ....;
> }
>
> /
> If the url /abc-not_to_cache-def/ is passed to nginx does the server
> execute both the matches (to_cache, then not_to_cache with not_to_cache
> overriding to_cache) or does it stop after the first match (to_cache)?

Quoting from http://nginx.org/r/location, the link already suggested:

: Then regular expressions are checked, in the order of their
: appearance in a configuration file. A search of regular
: expressions terminates on the first match, and the corresponding
: configuration is used.

[...]

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

A Challenging Config

splitice June 25, 2012 10:32AM

Re: A Challenging Config

Maxim Dounin June 25, 2012 11:04AM

Re: A Challenging Config

splitice June 25, 2012 11:38PM

Re: A Challenging Config

Maxim Dounin June 26, 2012 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready