Configuration Primer

Cliff Wells cliff at develix.com
Wed Mar 18 22:44:04 MSK 2009


On Wed, 2009-03-18 at 12:38 -0700, mike wrote:
> i don't like having to do
> 
> location \.php {
>   stuff
> }
> 
> location /foo {
>    auth basic stuff
>     ... and i have to do the php stuff again
> }

Couldn't you just do:

include /etc/nginx/php.conf;

location /foo {
    auth basic stuff
    include /etc/nginx/php.conf;
}

Regards,
Cliff






More information about the nginx mailing list