最新消息: 新版网站上线了!!!

nginx下ssl https的配置方法

server
{
listen      443;
server_name www.kuitao8.com;
root  /var/www;
ssl on;
ssl_certificate /usr/local/nginx/conf/ssl-bundle.crt;
ssl_certificate_key /usr/local/nginx/conf/laoda_me.key;
ssl_protocols SSLv3 TLSv1;
#Disables all weak ciphers
ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
location / {
            index  index.html index.php;
 
}
location ~ ^.+\.php
        {
            try_files $uri = 404;
            fastcgi_pass unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
   #fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
      #fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
   #fastcgi_param PATH_INFO $fastcgi_path_info;
   #fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
 
        }
 
}

转载请注明:谷谷点程序 » nginx下ssl https的配置方法