Simple forward proxy

asmith nginx-forum at nginx.us
Sat Apr 27 08:19:05 UTC 2013


Hello,

I have nginx 1.3 on my ubuntu 10.04 and there are some websites running by
it. I'd like to setup a forward proxy on a specific port so that I could use
it on my browsers network options.

I've done this so far:

        server
        {
                listen my.vps.ip.address:54321;

                location /
                {
                        resolver 8.8.8.8;
                        proxy_pass $scheme://$http_host$uri$is_args$args;
                }

                error_page   500 502 503 504  /50x.html;
                location = /50x.html
                {
                        root   html;
                }
        }

It works fine for http websites. but for all https websites, I get
"connection was reset".
Any tweak for this?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238675,238675#msg-238675



More information about the nginx mailing list