Nested Locations Better???

Dayo nginx-forum at nginx.us
Sun Feb 13 00:00:36 MSK 2011


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?

Thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,174517,174543#msg-174543




More information about the nginx mailing list