碰到了一个奇怪的小白问题,通过如下配置在nginx上配置ssl后,用https访问主页的话,浏览器直接下载index.php,而不是载入index.php,nginx启动无报错还请各位高手指教,多谢。server{root/var/www/html;indexindex.htmlindex.htmindex.php;listen443;server_namelocalhost;sslon;ssl_certificatea.crt;ssl_certificate_keya.key;ssl_session_timeout10m;ssl_session_cacheshared:SSL:10m;ssl_protocolsTLSv1TLSv1.1TLSv1.2;ssl_ciphersALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+EXP;ssl_prefer_server_cipherson;}
添加回答
举报
0/150
提交
取消