遇到这种问题,通常是由于fastcgi_script_name访问脚本路径不正确引起的。

nginx配置虚拟域名后直接输出或下载网页源代码而不是运行网页文件的解决办法...
image.png

问题就在这里,把原来的fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
改为存放代码的路径

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-12-13
猜你喜欢
  • 2021-11-14
  • 2022-01-18
  • 2022-12-23
  • 2021-10-08
  • 2021-07-22
相关资源
相似解决方案