ubuntu上Nginx的HTTPS enablement
生活随笔
收集整理的這篇文章主要介紹了
ubuntu上Nginx的HTTPS enablement
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在/etc/nginx目錄下的nginx.conf添加如下配置項目:
ssl_certificate cert/argame.pem;
ssl_certificate_key cert/argame.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;
nginx: [emerg] “ssl_certificate” directive is not allowed here in /etc/nginx/nginx.conf:75
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
最終效果:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的ubuntu上Nginx的HTTPS enablement的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu上wordpress安装的前
- 下一篇: 古墓丽影绳索箭在哪