Welcome! Log In Create A New Profile

Advanced

Re: Nested Locations Better???

February 12, 2011 04:12PM
On Sat, Feb 12, 2011 at 04:00:36PM -0500, Dayo wrote:
> Hi Igor.
>
>
> Igor Sysoev Wrote:
> -------------------------------------------------------
> > The nested locations are better if you
> > had to use regex
> > locations. Then I usually isolate regex location
> > inside usual location:
> >
> > location /dir/ {
> > location ~ ^/dir/(.+)$ {
> > ...
> > }
> > }
>
> How about the other way round? Non regex nested in regex?
>
> location ~ set {
> location /subset/ {
> ...
> }
> }
>
> Not likely to be common but possible. Any views?

You may use it, but do not see any advantage: you still have unisolated
configuration dependences.


--
Igor Sysoev
http://sysoev.ru/en/

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

Nested Locations Better???

Dayo February 12, 2011 02:33PM

Re: Nested Locations Better???

Igor Sysoev February 12, 2011 03:22PM

Re: Nested Locations Better???

Dayo February 12, 2011 03:47PM

Re: Nested Locations Better???

Igor Sysoev February 12, 2011 03:56PM

Re: Nested Locations Better???

Dayo February 12, 2011 04:00PM

Re: Nested Locations Better???

Igor Sysoev February 12, 2011 04:12PM

Re: Nested Locations Better???

Dayo February 12, 2011 04:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
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