How to set a option within a location block

--[ UxBoD ]-- uxbod at splatnix.net
Wed Jul 7 13:06:16 MSD 2010


Hi,

I have the URL http://www.xyz.com/dav/xxx and I need to be able to set http_timeout only when /dav/ is present in the URL.  The problem is that the configuration is third party supplied and they already have:

location /
{

}

So is it possible to have a location within a location for something like:

location /
{
    location ^~ /dav/ {
        keepalive_timeout 0;
    }
}
-- 
Thanks, Phil



More information about the nginx mailing list