nginx为什么https://www.mydomain.com成功而https://mydomain.com提示错误?
server {listen 443 ssl;server_name mydomain.com www.mydomain.com;root /var/www/mydomain.com;index index.html index.htm;ssl_certificate /etc/nginx/cert/2142952.pem;ssl_certificate_key /etc/nginx/cert/2142*952.key;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;location / {root /var/www/mydomain.com;index index.html index.htm;}}试试看
赞0
踩0