NGINX配置SSL

mac2022-06-30  36

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服务--------------------- 作者:易大飞 来源: 原文:https://blog.csdn.net/stf1065716904/article/details/74012579 版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://www.cnblogs.com/hnxxcxg/p/11301030.html


最新回复(0)