Welcome! Log In Create A New Profile

Advanced

nginx forward proxy - 502 bad gateway

March 09, 2013 12:18PM
I have install nginx forward proxy in two Ubuntu 12.04 servers with the
following configuration.

server {
listen 8080;

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


After this I use the two servers as proxy on firefox.
The one server works fine.

But on the second server I get the message 502 bad gateway.

This server is behind a cisco firewall with port 8080 open. Where is the
problem?

The line:

proxy_pass http://$http_host$uri$is_args$args;

has problem with firewalls? or it is something else?


--
Παναγιώτης Θεοδωρόπουλος
Panagiotis Theodoropoulos
<tpanagiotis@gmail.com>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx forward proxy - 502 bad gateway

ptheo March 09, 2013 12:18PM

Re: nginx forward proxy - 502 bad gateway

mex March 09, 2013 01:29PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
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