server {
listen 80 default;
listen 443 default_server;
server_name _;
ssl_certificate /www/server/panel/ssl/certificate.pem;
ssl_certificate_key /www/server/panel/ssl/privateKey.pem;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
return 444;
}
已解决!每个站点都绑定了IP,80无法访问,443+IP,可以访问,已经在默认站点里面设置了没有默认站点!
上面的代码解决了 |