<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"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></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>> Hi,<br>><br>> I was experimenting using nginx as forward proxy with the conf as attached.<br>><br>> Regular http requests were passed fine. But any https were rejected right away. Firewall was disabled on the proxy server.<br>
><br>> 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>><br>> -------------------------------------8<-----------------------------------------<br>
> $ 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>> * About to connect() to proxy 192.168.4.217 port 81 (#0)<br>
> * Trying 192.168.4.217... connected<br>> * Connected to 192.168.4.217 (192.168.4.217) port 81 (#0)<br>> * Establish HTTP proxy tunnel to <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a><br>
> > CONNECT <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a> HTTP/1.0<br>> > Host: <a href="http://jersey.dev.java.net:443/" target="_blank">jersey.dev.java.net:443</a><br>
> > 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>> > Proxy-Connection: Keep-Alive<br>> ><br>> < <html><br>> < <head><title>400 Bad Request</title></head><br>
> < <body bgcolor="white"><br>> < <center><h1>400 Bad Request</h1></center><br>> < <hr><center>nginx/0.8.20</center><br>> < </body><br>
> < </html><br>> * Proxy CONNECT aborted<br>> * Closing connection #0<br>> curl: (56) Proxy CONNECT aborted<br>> -------------------------------------8<-----------------------------------------<br>
<br></div></div>CONNECT differs from other HTTP methods.<br>
<div class="im"><br>> Here is the conf file. The prebuilt Nginx 0.8.20 runs on Windows 2003.<br>> -------------------------------------8<-----------------------------------------<br>> worker_processes 1;<br>
><br>> events {<br>> worker_connections 1024;<br>> }<br>><br>><br>> http {<br>> include mime.types;<br>> sendfile on;<br>><br>> resolver 208.67.220.220;<br>><br>
> server {<br>> listen 81;<br>> location / {<br>> proxy_pass $scheme://$http_host$request_uri;<br>> }<br>><br>> }<br>><br>> }<br>> -------------------------------------8<-----------------------------------------<br>
><br>> I suspect Nginx has not been designed to be used as a forward proxy. If nginx won'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>