Welcome! Log In Create A New Profile

Advanced

Re: http upstream keepalives

Valentin V. Bartenev
May 14, 2012 02:28PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

http upstream keepalives

davide.damico May 14, 2012 01:34PM

Re: http upstream keepalives

Valentin V. Bartenev May 14, 2012 02:28PM

Re: http upstream keepalives

Francis Daly May 14, 2012 02:58PM

Re: Re: http upstream keepalives

davide.damico May 15, 2012 12:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 269
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready