nginx配置
server { listen 80; listen 443 ssl; if ($server_port !~ 443){ rewrite ^(/.*)$ https://$host$1 permanent; } ssl_certificate 证书.crt; ssl_certificate_key 密钥.key; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; error_page 497 https://$host$request_uri; #ssl配置结束 server_name www.dhhblog.com dhhblog.com; root 站点目录; index index.php index.html index.htm; location ~ .*\.(php|php5)?$ { root 站点目录; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } }