开发者

nginx outgoing proxy configuration [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

im 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 ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜