http upstream keepalives

Valentin V. Bartenev ne at vbart.ru
Mon May 14 18:25:54 UTC 2012


On Monday 14 May 2012 21:32:18 Davide D'Amico wrote:
> Hi, I'm reading here:
> http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
> 
> so I've tried:
> 
> server {
>    keepalive_timeout    70;
>    error_log /var/log/nginx/test-error.log;
> 
>    listen 80;
>    server_name www.dave.it;
>    proxy_read_timeout      3600;
> 
>    proxy_set_header        Host $host;
>    proxy_set_header        X-Real-IP $remote_addr;
>    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
> 
> 
>    location / {
>      proxy_http_version 1.1;
>      proxy_set_header Connection "";
>      proxy_pass http://172.16.7.9:2323;
>    }
> }
> 
[...]
> 
> So I think that a little modification to documentation could be a good
> idea :)
> 

What modification is needed?

It seems that the documentation is already clear enough:

   http://nginx.org/r/proxy_set_header
  "These directives are inherited from the previous level if and only if
   there are no proxy_set_header directives defined on the current level."

 wbr, Valentin V. Bartenev



More information about the nginx mailing list