N版如何配置startssl的免费SSL?
根据nginx.conf里的例子配置了很久都无法成功 server { listen 443; server_name www.xxx.com; ssl on; ssl_certificate xxx.crt; ssl_certificate_key xxx.key; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root D:/web/xxx; index index.html index.htm index.php; include D:/web/xxx/up-*.conf; } location ~ ^.+\.php { root D:/web/xxx; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } } xxx.crt 和xxx.key 都放在nginx.conf同文件夹下面,RR后无法打开页面,不知道如何修改才能正确配置SSL? |
|
最新喜欢:柒铖鸿 |
沙发#
发布于:2015-12-27 22:31
crt和key像root路径一样用绝对路径,不要放网站根目录,可以放nginx的conf子目录内,另外不要用记事本编辑否则无法启动。
|
|
板凳#
发布于:2016-01-06 22:37
|
|
地板#
发布于:2016-03-16 23:29
不用記事本,那要用什麼編輯?
|
|
4楼#
发布于:2016-05-09 18:57
|
|
5楼#
发布于:2016-05-13 13:56
用户被禁言,该主题自动屏蔽! |
|