碰到了一个奇怪的小白问题,通过如下配置在nginx上配置ssl后,用https访问主页的话,浏览器直接下载index.php,而不是载入index.php,nginx启动无报错还请各位高手指教,多谢。
server
{
root /var/www/html;
index index.html index.htm index.php;
listen 443;
server_name localhost;
ssl on;
ssl_certificate a.crt;
ssl_certificate_key a.key;
ssl_session_timeout 10m;
ssl_session_cache shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+EXP;
ssl_prefer_server_ciphers on;
}
和 SSL 没有关系,请确认: