Proxy_set_header not effetive in http scope?

Hi,
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 ?

BR,
DeltaY

On Wed, Sep 10, 2008 at 05:12:53PM +0800, Delta Y. 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.

any other such directives?

2008/9/10 Igor S. [email protected]:

Hello!

On Thu, Sep 11, 2008 at 01:00:30AM +0800, Delta Y. wrote:

any other such directives?

It’s default behaviour for almost all array-type directives.

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

Maxim D.

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

Hello!

On Thu, Sep 11, 2008 at 01:00:30AM +0800, Delta Y. 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.

On Thu, Sep 11, 2008 at 01:00:30AM +0800, Delta Y. wrote:

any other such directives?

Yes, any proxy_set_header resets inherited proxy_set_header directives
for given server/location.