proxy_set_header in http section works in 0.6.32 but not 0.7.62

Igor Sysoev is at rambler-co.ru
Thu Sep 17 13:43:44 MSD 2009


On Thu, Sep 17, 2009 at 01:47:03AM +0000, Matt wrote:

> I have found that proxy_set_header directives in the http section 
> works in version 0.6.32 but not in 0.7.62, instead I have to place 
> them under the location context.
> 
> The specific directives I am using are:
> 
>        proxy_set_header Accept-Encoding "";
>        proxy_set_header User-Agent "";
>        proxy_set_header X-Real-IP  $remote_addr;

The proxy_set_header directives in http section are inherited
in all servers and locations unless thery will be overwritten in
some server/location by any proxy_set_header.

This should work since 0.1.0.


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





More information about the nginx mailing list