nginx resolver 一直提示domain.com could not be resolved
server{
resolver 8.8.8.8 valid=3600s;
listen 80;
server_name *.gov.cn;
location / {
proxy_pass http://$http_host$request_uri;
# proxy_redirect default;
# proxy_set_header Host $host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Cookie $http_cookie;
}
}
#server www.snds.gov.cn end}
3488#5012: *4 www.snds.gov.cn could not be resolved (2: Server failure), client: 113.200.27.27, server: *.gov.cn, request: "GET / HTTP/1.1", host: "www.snds.gov.cn"
2015/06/18 22:39:51 [error] 3488#5012: *4 www.snds.gov.cn could not be resolved (2: Server failure), client: 113.200.27.27, server: *.gov.cn, request: "GET /favicon.ico HTTP/1.1", host: "www.snds.gov.cn", referrer: "http://www.snds.gov.cn/"
2015/06/18 22:39:51 [error] 3488#5012: unexpected response for www.snds.gov.cn
如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。