首页 > 数据库 > mysql教程 > 完整nginx接入https关键配置文件

完整nginx接入https关键配置文件

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-07 15:16:59
原创
1348 人浏览过

server { listen 432 ssl; server_name www.test.com; ssl on; ssl_certificate /usr/local/nginx/ssl/www.test.com.crt.pem; ssl_certificate_key /usr/local/nginx/ssl/www.test.com.key.pem; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!EXP:!ADH:!LOW:

server 
{ 
    listen       432 ssl; 
        server_name  www.test.com; 

    ssl            on; 
    ssl_certificate        /usr/local/nginx/ssl/www.test.com.crt.pem; 
    ssl_certificate_key    /usr/local/nginx/ssl/www.test.com.key.pem; 
    ssl_protocols        SSLv3 TLSv1; 
    ssl_ciphers        ALL:!EXP:!ADH:!LOW:!SSLv2:!MD5; 
    ssl_session_timeout     5m; 
    ssl_prefer_server_ciphers on; 

        access_log  /data/logs/SSL_www.test.com_access.log; 
        error_log  /data/logs/SSL_www.test.com_error.log; 

        root /www/test/ssl/web; 

        index  index.php index.html index.htm; 

        if ($uri !~ ^.*(\.xml|\.html|\.htm|index\.php|soap\.php|php\.php|health\.php|status|\.swf|\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.ico)){ 
                rewrite ^/(.*)$ /index.php?$1 last; 
        } 

        location ~ \.php$ { 
            fastcgi_pass   127.0.0.1:9000; 
            fastcgi_index  index.php; 
            include        fcgi.conf; 
            fastcgi_param  HTTPS on; 
        } 
} 
登录后复制

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
视频看不完整
来自于 1970-01-01 08:00:00
0
0
0
完整的代码在哪里呢?
来自于 1970-01-01 08:00:00
0
0
0
老师请问你这边的完整笔记有吗
来自于 1970-01-01 08:00:00
0
0
0
angular.js - 用angular写的完整项目
来自于 1970-01-01 08:00:00
0
0
0
老师弄个完整的留言版的示例呗
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板