server { listen 432 ssl; server_name HdhCmsTesttest测试数据; ssl on; ssl_certificate /usr/local/nginx/ssl/HdhCmsTesttest测试数据.crt.pem; ssl_certificate_key /usr/local/nginx/ssl/HdhCmsTesttest测试数据.key.pem; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!EXP:!ADH:!LOW:
server
{
listen 432 ssl;
server_name HdhCmsTesttest测试数据;
ssl on;
ssl_certificate /usr/local/nginx/ssl/HdhCmsTesttest测试数据.crt.pem;
ssl_certificate_key /usr/local/nginx/ssl/HdhCmsTesttest测试数据.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_HdhCmsTesttest测试数据_access.log;
error_log /data/logs/SSL_HdhCmsTesttest测试数据_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;
}
}
查看更多关于完整nginx接入https关键配置文件的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did158215