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 {} }
問題解答
回答1:看看安全組和防火墻的端口設置
相關文章:
1. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?2. javascript - Web微信聊天輸入框解決方案3. 請教各位大佬,瀏覽器點 提交實例為什么沒有反應4. docker - 如何修改運行中容器的配置5. javascript - log4js的使用問題6. javascript - 移動端textarea不能上下滑動,該怎么解決?7. javascript - 為什么form表單提交沒有跨域問題,但ajax提交有跨域問題?8. javascript - history.replaceState()無法改變query參數9. javascript - 為什么這個點擊事件需要點擊兩次才有效果10. javascript - Ajax加載Json時,移動端頁面向左上角縮小一截兒,加載完成后才正常顯示,這該如何解決?
