nginx forward proxy - 502 bad gateway

Panagiotis Theodoropoulos tpanagiotis at gmail.com
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 / {
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 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130309/5b605e2b/attachment.html>


More information about the nginx mailing list