nginx开启ssl访问的配置文件

  server {
         listen       443 ssl;
         server_name  test.ildd.cc;
         ssl           on;
        root          html;
        index         index.php;
         ssl_certificate      /usr/local/nginx/conf/test.crt;
         ssl_certificate_key  /usr/local/nginx/conf/test.key;
  
         ssl_session_cache    shared:SSL:1m;
         ssl_session_timeout  5m;
  
         ssl_ciphers  HIGH:!aNULL:!MD5;
         ssl_prefer_server_ciphers  on;
  
        location ~ \.php$ {
             root           html;
             fastcgi_pass   127.0.0.1:9000;
             fastcgi_index  index.php;
     fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
             include        fastcgi_params;
         }
  
         location / {
             root   html;
             index index.php index.html index.htm;
         }
     } 

发表评论

登录... 后才能评论