Fwd: Re: Troubles with http basic authentication.

Igor Sysoev is at rambler-co.ru
Mon Oct 1 12:48:10 MSD 2007


On Mon, Oct 01, 2007 at 10:42:01AM +0200, Matteo Niccoli wrote:

> Maxim Dounin ha scritto:
> > You should use something like this:
> > 
> > location /admin/ {
> >      auth_basic ...
> > }
> > location ~ ^/admin/.*\.php5$ {
> >      auth_basic ...
> >      fastcgi_pass ...
> > }
> 
> Ok thanks, should be ok. But, there's no possibility to define location
> into under location? Some like this:
> 
> location /admin/ {
> 	auth_basic .....
> 
> 	location ~ \.php5$ {
> 		fastcgi_pass ....
> 	}
> }
> 
> So the last location should be inherit properties of the upper location?

nginx supports inclusive locations, but some directives work incorrectly
(such as alias), so it is not documented.


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





More information about the nginx mailing list