javascript - GET net::ERR_CONNECTION_TIMED_OUT无法打开自己的网站
phpcn_u1582
phpcn_u1582 2017-05-16 13:26:28
[Linux讨论组]
    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 {
        }
    }
phpcn_u1582
phpcn_u1582

全部回复(1)
PHP中文网

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号