碰到了一個奇怪的小白問題,通過如下配置在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;}
Nginx ssl設置后自動下載根目錄的index.php而不是載入
蕪湖不蕪
2019-03-30 11:35:25