問題描述:線下項目訪問首頁index.php正常 線上lavarel 403
基本操作:
/etc/nginx/conf.d/xxx.conf
index 配置添加index.php
重啟nginx systemctl restart nginx
systemctl status nginx
原因:
線下直接通過php訪問項目 php傻瓜式配置自動找index.php
線上需要在配置文件中配置一下

問題描述:線下項目訪問首頁index.php正常 線上lavarel 403
基本操作:
/etc/nginx/conf.d/xxx.conf
index 配置添加index.php
重啟nginx systemctl restart nginx
systemctl status nginx
原因:
線下直接通過php訪問項目 php傻瓜式配置自動找index.php
線上需要在配置文件中配置一下

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