proxy_set_header not effetive in http scope?

Igor Sysoev is at rambler-co.ru
Wed Sep 10 21:52:15 MSD 2008


On Wed, Sep 10, 2008 at 09:18:38PM +0400, Maxim Dounin wrote:

> Hello!
> 
> On Thu, Sep 11, 2008 at 01:00:30AM +0800, Delta Yeh wrote:
> 
> >any other such directives?
> 
> It's default behaviour for almost all array-type directives.

Yes.

> The only exception I'm able to remind is access_log, which accepts
> special 'off' value to reset inherited values.

No, any access_log resets inherited logs.

> Maxim Dounin
> 
> >
> >2008/9/10 Igor Sysoev <is at rambler-co.ru>:
> >>On Wed, Sep 10, 2008 at 05:12:53PM +0800, Delta Yeh wrote:
> >>
> >>>   I test "proxy_set_header User-Agent test-ua;" and found it's  not
> >>>effective in http scope but  in server scope .
> >>>The same as "proxy_set_header Accept-Encoding identity;" .
> >>> Is it a bug ?
> >>
> >>Any proxy_set_header directive on server or location level drops all
> >>inherited proxy_set_header directives.
> >>
> >>
> >>--
> >>Igor Sysoev
> >>http://sysoev.ru/en/
> >>
> >>
> >

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





More information about the nginx mailing list