Welcome! Log In Create A New Profile

Advanced

Re: nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

xuzheng
June 21, 2010 12:16PM
thanks,Maxim Dounin :)
I must use your remove-header way, because I am building a test env like
online, for example,
when tester visits our site page( same to online url )with proxy, nginx
forward to test machine,
but when he visits outer-site page ,nginx forward to outer.
other forward proxy such as squid doesn't seems to have such feature.
Indeed, in this case ,this nginx is a forward-reverse proxy.



2010/6/21 Maxim Dounin <mdounin@mdounin.ru>

> Hello!
>
> On Mon, Jun 21, 2010 at 04:08:25PM +0800, xuzheng wrote:
>
> > hi, when i use nginx as a forward prxoy, some page can not be downloaded
> > successfully.
>
> nginx isn't forward proxy, and it know nothing about
> Proxy-Connection. If server you are connecting to happens to keep
> connection alive due to "Proxy-Connection: keep-alive" header -
> the behaviour you see is quite expected.
>
> You have to manually remove this header from request via something
> like
>
> proxy_set_header Proxy-Connection "";
>
> Or, much better, just don't use nginx as forward proxy.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

xuzheng June 21, 2010 04:18AM

Re: nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

Maxim Dounin June 21, 2010 04:26AM

Re: nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

xuzheng June 21, 2010 12:16PM

Re: nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

Weibin Yao June 21, 2010 04:32AM

Re: nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'

xuzheng June 21, 2010 05:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 222
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