Nested Locations Better???
Igor Sysoev
igor at sysoev.ru
Sun Feb 13 00:08:53 MSK 2011
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/
More information about the nginx
mailing list