我的是主机访问虚拟机的共享文件下的项目

这个问题,是因为nginx去掉index.php的配置问题用` location / {

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

}

用以上代码就会出错,我改成

location / {

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

}

这样就OK了

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2021-11-17
  • 2021-11-08
  • 2021-11-01
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-09-06
  • 2021-11-10
相关资源
相似解决方案