LNMP Server Configuration HTTPS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.