0
我在使用NGINX/Nodejs在ubuntu服務器上安裝SSL證書時遇到了問題。Ubuntu/Nginx SSL證書不起作用
上的/ etc/nginx的/網站啓用/網站文件我
server {
listen *:443 default_server ssl;
listen 80;
ssl_certificate_key /etc/ssl/myserver.key;
ssl_certificate /etc/sscl/gd_bundle-g2-g1.crt;
server_name XXX.example.io;
root /var/www/example/public/;
client_max_body_size 100M;
open_file_cache max=200000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
error_log /var/log/nginx/example_error.log warn;
try_files $uri @example2;
log_not_found on;
log_subrequest on;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1d;
}
location @example2 {
proxy_pass http://record;
}
}
當我netstat來查看該端口是否443正在聆聽它不是(netstat的-antlp)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1022/sshd
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN 19976/nodejs
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 30164/nodejs
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5656/nginx
.......................
tcp6 0 0 :::22 :::* LISTEN 1022/sshd
關於爲什麼NGINX甚至沒有聽港口443的任何想法?我已經在AWS上打開了它。
錯誤日誌中的任何東西? –