nginx开启https
开启https配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
server { listen 443; server_name xxx.com; #其它项省略 #开启ssl ssl on; #证书 ssl_certificate /xxx/fullchain.pem; #key ssl_certificate_key /xxx/privkey.pem; #其它项省略 #...... } |
#下面是http跳转至https
1 2 3 4 5 |
server { listen 80; server_name www.redis.com.cn; rewrite ^(.*) https://$server_name$1 permanent; } |
分类: nginx
@panku
参考这里https://blog.redis.com.cn/5343.html
配置了ssl后,error.log,出现错误信息:
09:50:22 [crit] 3412#0: *36298343 SSL_do_handshake() failed (SSL: error:140A1175:SSL routines:SSL_BYTES_TO_CIPHER_LIST:inappropriate fallback) while SSL handshaking, client: 117.136.40.188, server: 0.0.0.0:443
博主知道是啥原因不?