你这个配置是错误的,
- server {
- listen 80;
- server_name libo0905.com www.libo0905.com;
- return 301 https://www.libo0905.com$request_uri;
- }
- server {
- listen 443 ssl;
- server_name libo0905.com;
- ssl_certificate /path/to/your/fullchain.pem;
- ssl_certificate_key /path/to/your/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384:TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA';
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:10m;
- return 301 https://www.libo0905.com$request_uri;
- }
复制代码 |