thanks£¬Maxim Dounin :)<br>I must use your remove-header way, because I am building a test env like online, for example,&nbsp; <br>when tester&nbsp; visits our site page( same to online url )with proxy, nginx forward to&nbsp; test machine,<br>
&nbsp;but when he visits outer-site page ,nginx forward to outer.<br>other forward proxy such as squid doesn&#39;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">&lt;<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>&gt;</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>
&gt; hi, when i use nginx as a forward prxoy, some page can not be downloaded<br>
&gt; successfully.<br>
<br>
</div>nginx isn&#39;t forward proxy, and it know nothing about<br>
Proxy-Connection. &nbsp;If server you are connecting to happens to keep<br>
connection alive due to &quot;Proxy-Connection: keep-alive&quot; 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>
 &nbsp; &nbsp;proxy_set_header Proxy-Connection &quot;&quot;;<br>
<br>
Or, much better, just don&#39;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>