Fwd: Re: Troubles with http basic authentication.

Matteo Niccoli matteo.niccoli at staff.dada.net
Mon Oct 1 12:42:01 MSD 2007


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?







More information about the nginx mailing list