javascript - GET net::ERR_CONNECTION_TIMED_OUT无法打开自己的网站

查看:614
本文介绍了javascript - GET net::ERR_CONNECTION_TIMED_OUT无法打开自己的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

    server {
          listen 80;
          server_name localhost;
          rewrite ^(.*) https://$host$1 permanent;
    }
    server {
        listen       443;
        server_name  www.xxx.cn;
        root /data/www/blog/;

        ssl on;
        ssl_certificate /data/www/blog/ssl/1_www.xxx.cn_bundle.crt;
        ssl_certificate_key /data/www/blog/ssl/2_www.xxx.cn.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
        ssl_prefer_server_ciphers on;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
                 try_files $uri $uri/ /index.html;
        }

        location /api {
                proxy_pass http://118.89.60.117:3030;
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

解决方案

看看安全组和防火墙的端口设置

这篇关于javascript - GET net::ERR_CONNECTION_TIMED_OUT无法打开自己的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆