Heim >Datenbank >MySQL-Tutorial >完整nginx接入https关键配置文件

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:16:591343Durchsuche

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; 
        } 
} 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn