thanks£¬Maxim Dounin :)<br>I must use your remove-header way, because I am building a test env like online, for example, <br>when tester visits our site page( same to online url )with proxy, nginx forward to test machine,<br>
but when he visits outer-site page ,nginx forward to outer.<br>other forward proxy such as squid doesn't seems to have such feature.<br>Indeed, in this case ,this nginx is a forward-reverse proxy.<br><br><br><br><div class="gmail_quote">
2010/6/21 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello!<br>
<div><br>
On Mon, Jun 21, 2010 at 04:08:25PM +0800, xuzheng wrote:<br>
<br>
> hi, when i use nginx as a forward prxoy, some page can not be downloaded<br>
> successfully.<br>
<br>
</div>nginx isn't forward proxy, and it know nothing about<br>
Proxy-Connection. If server you are connecting to happens to keep<br>
connection alive due to "Proxy-Connection: keep-alive" header -<br>
the behaviour you see is quite expected.<br>
<br>
You have to manually remove this header from request via something<br>
like<br>
<br>
proxy_set_header Proxy-Connection "";<br>
<br>
Or, much better, just don't use nginx as forward proxy.<br>
<br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>