How to set a option within a location block

Boris Dolgov boris at dolgov.name
Wed Jul 7 13:12:14 MSD 2010


Hello!

On Wed, Jul 7, 2010 at 1:06 PM, --[ UxBoD ]-- <uxbod at splatnix.net> wrote:
> So is it possible to have a location within a location for something like:
>
> location /
> {
>    location ^~ /dav/ {
>        keepalive_timeout 0;
>    }
> }
Yes, it is possible.
You can even have such configuration:
location /
{
    ... all configuration ...
    location /dav
    {
        keepalive_timeout 0;
    }
}

-- 
Boris Dolgov.



More information about the nginx mailing list