在配置nginx时有时会遇到, 所以记录一下

location ^~ /wechat/ {
        index index.php;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;

        include fastcgi_params;
    }

fastcig_index : 如果请求的Fastcgi_index URI是以 / 结束的, 该指令设置的文件会被附加到URI的后面并保存在变量$fastcig_script_name中

index : 该指令用于设置nginx的默认首页文件

相关文章:

  • 2021-07-15
  • 2021-06-11
  • 2022-12-23
  • 2021-12-12
  • 2021-07-26
  • 2022-02-08
  • 2022-02-20
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-02-12
  • 2021-06-29
  • 2021-08-12
  • 2021-09-12
  • 2022-01-14
相关资源
相似解决方案