Welcome! Log In Create A New Profile

Advanced

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

xuzheng
June 21, 2010 05:18AM
thanks, after remove the header, it works well.


2010/6/21 Weibin Yao <nbubingo@gmail.com>

> xuzheng at 2010-6-21 16:08 wrote:
>
>> hi, when i use nginx as a forward prxoy, some page can not be downloaded
>> successfully.
>> example:
>> http_proxy=ip:port wget -O test.html
>> http://s1.ganjistatic1.com/css/base_ue3_house.__1276756225__.css--header='Proxy-Connection: keep-alive' -S
>> the received data length always less than response heade specificed
>> length, so wget will retry again and again.
>> if use ie or firefox, the page load very slow, I guess the browser retry
>> many times like wget.
>> but if not sent header 'Proxy-Connection: keep-alive', the page can be
>> downloaded successfully.
>> Any one has idea?
>>
> Nginx does not support keepalive connection with backend server.
>
> Maybe you should remove the header of "proxy-connection" like this:
>
>
> proxy_set_header Proxy-Connection "";
>
>> thanks.
>>
>>
>> the nginx config file:
>> server { # simple load balancing
>> listen 9681;
>> resolver 202.106.0.20;
>> location / {
>> proxy_pass http://$http_host$request_uri;
>> }
>> }
>>
>> the nginx version is 0.7.65-5 ,
>> os is debian Linux dev 2.6.30-1-amd64
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>>
>
>
> --
> Weibin Yao
>
>
>
> _______________________________________________
> 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: 137
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