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?
on 2013-03-09 18:17
on 2013-03-09 19:29
> are you able to connect to $http_host from that second server, maybe via lynx/w3m? $ telnet $http_host 8080 and then GET / additionally, can you execute the following on that server to check if you're able to connect to your resolver: $ nslookup $http_host 8.8.8.8 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237162,237164#msg-237164
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.