nginx outgoing proxy configuration [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionim using nginx x as a reverse proxy. heres my configuration :
location /google/ {
rewrite ^/google/(.*) /$1 break;
proxy_set_h开发者_如何学运维eader Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://www.google.com;
}
The problem is that all my outbound HTTP request are going trough my compagny proxy, and nginx is giving me this error (seems that domain name resolution is made via the proxy)
nginx: [emerg] host not found in upstream "backend" in nginx.conf:xxx
How to configure nginx to use this proxy for outgoing request ?
精彩评论