nginx forward proxy - 502 bad gateway

Panagiotis Theodoropoulos tpanagiotis at
Sat Mar 9 17:17:07 UTC 2013

I have install nginx forward proxy in two Ubuntu 12.04 servers with the
following configuration.

server {
listen 8080;

location / {
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

The line:

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

has problem with firewalls? or it is something else?

Παναγιώτης Θεοδωρόπουλος
Panagiotis Theodoropoulos
<tpanagiotis at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list