Welcome! Log In Create A New Profile

Advanced

ssl/secure proxy

Posted by atraganis 
ssl/secure proxy
March 11, 2013 11:06AM
Hello all,

I need to setup nginx to act as a proxy server between the client and https://www.example.com.

I want nginx to act as a forward proxy in port 8080.

The .conf file looks like the following:



server {

listen 8080;
server_name www.example.com;

ssl on;
ssl_certificate /etc/nginx/server.crt;
ssl_certificate_key /etc/nginx/server.key;

location / {
proxy_pass https://www.example.com/;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

access_log /var/log/nginx/proxy-access.log;
error_log /var/log/nginx/proxy-error.log;


}
}



Then when i configure my browser to use it as a proxy on port 8080, i get the following:


"Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED): Unknown error"


What am i missing here? Any advice will be appreciated.

Thank you in advance,

Apostolos
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready