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
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