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服务

posted @ 2019-08-05 09:03  delphi中间件  阅读(446)  评论(0编辑  收藏  举报