rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/ind


我的是主機訪問虛擬機的共享文件下的項目

這個問題,是因為nginx去掉index.php的配置問題用` location / {

 if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } 

}

用以上代碼就會出錯,我改成

location / {

 if (!-e $request_filename){ rewrite . /index.php last; } 

}

這樣就OK了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM