NGINX配置SSL
Posted hnxxcxg
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NGINX配置SSL相关的知识,希望对你有一定的参考价值。
nginx配置SSL
server
listen 443ssl;
server_name smsapi.chunbo.com;
root /var/www/smsapi.david.com;
ssl on;
ssl_certificate /etc/nginx/conf.d/server.crt;
ssl_certificate_key /etc/nginx/conf.d/server.key;
ssl_client_certificate /etc/nginx/conf.d/ca.crt;
ssl_verify_client off;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /
indexindex.php index.html;
location ~ \.php$
include /etc/nginx/fastcgi_params;
if (-f$request_filename)
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#nginx 配置完成,reloadNginx服务
---------------------
作者:易大飞
来源:CSDN
原文:https://blog.csdn.net/stf1065716904/article/details/74012579
版权声明:本文为博主原创文章,转载请附上博文链接!
以上是关于NGINX配置SSL的主要内容,如果未能解决你的问题,请参考以下文章