微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

错误:Dns-probe-finished-nxdomain-google-cloud-platform 和 nginx

如何解决错误:Dns-probe-finished-nxdomain-google-cloud-platform 和 nginx

我的目的是使用 Nginx 作为另一个应用程序的代理,我得到了上面的错误

我的 Nginx 配置如下所示,我已经取消了认的 Nginx 配置的链接,但仍然出现错误:DNS_PROBE_FINISHED_NXDOMAIN

server {
       listen 80 default_server ;
   server_name www.app.staging.bla.blabla;
   return 301 https://$server_name$request_uri;

}

server {
   listen 443 ssl;
   server_name www.app.staging.bla.blabla;
   ssl_certificate /etc/Nginx/ssl/pivot-staging.crt;
   ssl_certificate_key /etc/Nginx/ssl/pivot-staging.key;

   location / {
      root /usr/share/Nginx/html;
      index index.html index.htm;
   }

}
```

i use Nginx as a VM instance on Google cloud and i have two fw rules (allow http and allow ssh access)..

and the OS is ubuntu 16.04

Thanks in advance !

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。