<div>HI Igor:</div>
<div> </div>
<div>Is there any schedule to support the feathure, forward proxy ?</div>
<div> </div>
<div>thanks </div>
<div>NextHop  <br><br></div>
<div class="gmail_quote">On Tue, Oct 20, 2009 at 2:12 PM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On Tue, Oct 20, 2009 at 12:51:02PM +0800, 冉兵 wrote:<br><br>&gt; Hi,<br>&gt;<br>&gt; I was experimenting using nginx as forward proxy with the conf as attached.<br>&gt;<br>&gt; Regular http requests were passed fine. But any https were rejected right away. Firewall was disabled on the proxy server.<br>
&gt;<br>&gt; Here was the trace with curl, where the proxy runs on <a href="http://192.168.4.217:81/" target="_blank">192.168.4.217:81</a><br>&gt;<br>&gt; -------------------------------------8&lt;-----------------------------------------<br>
&gt; $ curl -v -x <a href="http://192.168.4.217:81/" target="_blank">192.168.4.217:81</a> <a href="https://jersey.dev.java.net/" target="_blank">https://jersey.dev.java.net/</a><br>&gt; * About to connect() to proxy 192.168.4.217 port 81 (#0)<br>
&gt; *   Trying 192.168.4.217... connected<br>&gt; * Connected to 192.168.4.217 (192.168.4.217) port 81 (#0)<br>&gt; * Establish HTTP proxy tunnel to <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a><br>
&gt; &gt; CONNECT <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a> HTTP/1.0<br>&gt; &gt; Host: <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a><br>
&gt; &gt; User-Agent: curl/7.16.3 (i686-pc-cygwin) libcurl/7.16.3 OpenSSL/0.9.8k zlib/1.2.3 libssh2/0.15-CVS<br>&gt; &gt; Proxy-Connection: Keep-Alive<br>&gt; &gt;<br>&gt; &lt; &lt;html&gt;<br>&gt; &lt; &lt;head&gt;&lt;title&gt;400 Bad Request&lt;/title&gt;&lt;/head&gt;<br>
&gt; &lt; &lt;body bgcolor=&quot;white&quot;&gt;<br>&gt; &lt; &lt;center&gt;&lt;h1&gt;400 Bad Request&lt;/h1&gt;&lt;/center&gt;<br>&gt; &lt; &lt;hr&gt;&lt;center&gt;nginx/0.8.20&lt;/center&gt;<br>&gt; &lt; &lt;/body&gt;<br>
&gt; &lt; &lt;/html&gt;<br>&gt; * Proxy CONNECT aborted<br>&gt; * Closing connection #0<br>&gt; curl: (56) Proxy CONNECT aborted<br>&gt; -------------------------------------8&lt;-----------------------------------------<br>
<br></div></div>CONNECT differs from other HTTP methods.<br>
<div class="im"><br>&gt; Here is the conf file. The prebuilt Nginx 0.8.20 runs on Windows 2003.<br>&gt; -------------------------------------8&lt;-----------------------------------------<br>&gt; worker_processes  1;<br>
&gt;<br>&gt; events {<br>&gt;     worker_connections  1024;<br>&gt; }<br>&gt;<br>&gt;<br>&gt; http {<br>&gt;     include       mime.types;<br>&gt;     sendfile        on;<br>&gt;<br>&gt;     resolver 208.67.220.220;<br>&gt;<br>
&gt;     server {<br>&gt;         listen       81;<br>&gt;         location / {<br>&gt;               proxy_pass $scheme://$http_host$request_uri;<br>&gt;         }<br>&gt;<br>&gt;     }<br>&gt;<br>&gt; }<br>&gt; -------------------------------------8&lt;-----------------------------------------<br>
&gt;<br>&gt; I suspect Nginx has not been designed to be used as a forward proxy. If nginx won&#39;t foot the bill, can anyone recommend a free solution please?<br><br></div>Yes, nginx has not been disigned as a forward proxy. You should try squid<br>
which was a forward proxy from the very start.<br><font color="#888888"><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br><br></font></blockquote></div><br>