nginx配置ssl

来源:互联网 发布:怎样注册淘宝号 编辑:程序博客网 时间:2024/05/22 02:25
在nginx.conf中的http节点内,添加如下参数,具体参数还请参考你的证书提供商


server {
       listen       443;
       server_name  domain;
       ssl                  on;
       ssl_certificate      domain.crt;
       ssl_certificate_key      domain.key;
       ssl_session_timeout  5m;
       ssl_protocols  SSLv3 TLSv1;
       ssl_ciphers  HIGH:!ADH:!EXPORT56:RC4+RSA:+MEDIUM;
       ssl_prefer_server_ciphers   on;
       location / {
           root   html;
           index  index.html index.htm;
       }
}
0 0
原创粉丝点击