求一个wordpress在LNMP1.1下开启ssl的教程
网上看了好多了都没成功!拜托各位了 主要应该是spdy 修改upgrade_nginx.sh 升级脚本,nginx编译参数--with-ipv6后面加上 --with-http_spdy_module,别忽略了前面的空格升级一下nginx
配置如下:
server
{
listen 443 ssl spdy;
#listen [::]:443 ssl spdy;
server_name lnmp.org www.lnmp.org;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/lnmp.org;
ssl on;
ssl_certificate /home/ssl/lnmp.org/ssl.crt;
ssl_certificate_key /home/ssl/lnmp.org/ssl.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:RC4-SHA:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!DSS:!PKS;
ssl_session_cache builtin:1000 shared:SSL:10m;
省略其他php解析等部分
}
页:
[1]