求教关于proxy的问题

3 views
Skip to first unread message

siceberg

unread,
May 18, 2009, 6:17:45 AM5/18/09
to cnginx
我使用nginx中的proxy以达到地址栏中地址不变,内容调用其他地址程序,例如网址是www.test.com,内网是调用google首页
例如
if ($host ~* ^www.test.com$) {
proxy_pass http://www.google.cn;
}
在内网环境下没有问题
可是到了外网就无法访问分两种错误
一种是502 Bad Gateway
还有一种是The page you are looking for is temporarily unavailable. Please
try again later

Reply all
Reply to author
Forward
0 new messages