server {
server_name ktsf.weiyou18.com;
#listen 80;
Listen 443;
SSL on;
SSL_CERTIFICATE/USR/LOCAL/NGINX/CONF/VHOST/CERT/214819247210150.PEM;
Ssl_certificate_key/usr/local/nginx/conf/vhost/cert/214819247210150.key;
Ssl_session_timeout 5m;
Ssl_ciphers ecdhe-rsa-aes256-gcm-sha512:dhe-rsa-aes256-gcm-sha512:ecdhe-rsa-aes256-gcm-sha384:d he-rsa-aes256-gcm-sha384:ecdhe-rsa-aes256-sha384;
Ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Ssl_prefer_server_ciphers on;
Index index.php index.html index.htm;
Root/home/wwwroot/ktsf/public;
Location/nginx_status {
Stub_status on;
Access_log off;
Allow 127.0.0.1;
Deny all;
}
Location ~. *\. (gif|jpg|jpeg|png|bmp|swf) $ {
Expires 30d;
}
Location ~. *\. (JS|CSS)? $ {
Expires 12h;
}
Location/{
if (!-e $request _filename) {
Rewrite ^ (. *) $/index.php?s=/$1 last;
Break
}
}
Location ~ \.php$ {
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param script_filename $document _root$fastcgi_script_name;
Fastcgi_param Php_value open_basedir=/home/wwwroot/ktsf:/tmp/:/proc/;
Include Fastcgi_params;
}
Access_log/home/wwwlog/ktsf/access.log access;
Error_log/home/wwwlog/ktsf/error.log error;
}
LNMP Server Configuration HTTPS