步驟與使用openssl自簽發伺服器https證書所述大同小異。在這裡再重複一次。
優化nginx效能
在http{}中加入:
ssl_session_cache shared:ssl:10m;
ssl_session_timeout 10m;
據官方文件所述,cache中的1m可以存放4000個session。
在配置https的虛擬主機server{}中加入:
keepalive_timeout 70;
有時候,會發現,在phpmyadmin等程式登入後會錯誤地跳轉http的問題。解決方法是定位至「location ~ .*.(php|php5)?${}」在include fcgi.conf;或者在fastcgi_param配置後面加上:
fastcgi_param http_scheme https;在這裡是nginx官方的關於https的文件,可以作為參考。
注: **
為nginx配置https並自簽名證書
2016年11月15日 22 30 47 閱讀數 5518 一 把證書準備好。步驟與使用openssl自簽發伺服器https證書所述大同小異。在這裡再重複一次。1 製作ca證書 ca.key ca私鑰 openssl genrsa des3 out ca.key 2048製作解密後的ca私鑰 一般無...
為nginx配置https並自簽名證書
一 把證書準備好。步驟與使用openssl自簽發伺服器https證書所述大同小異。在這裡再重複一次。1 製作ca證書 ca.key ca私鑰 openssl genrsa des3 out ca.key 2048 製作解密後的ca私鑰 一般無此必要 openssl rsa in ca.key out...
搭建nginx,並配置https
1 新增yum源 yum y install wget wget o etc yum.repos.d centos base.repo 使用阿里雲映象站的網路yum源 yum clean all yum makecache yum y install nc net tools vim tree ds...