为什么要反馈压力服务端程序在遇到高并发请求时,一旦超过程序所能处理的极限,可能会导致崩溃,引发线上服务的大规模雪崩。压力反馈(Back Pressure)是一种由服务端主动告知客户端自身资源不足,无法
顺晟科技
2022-09-15 15:37:32
122
当前环境 windows + laragon + nginx + php7.2 
在搭建 fastadmin 的时候遇到点问题,可能是因为没有开启 pathinfo
尝试修改nginx如下配置后, 访问 /index 正常, 访问后台显示 no input file specified.
请问该如何排查这个问题呢
# 原版
#    location ~ \.php$ {
#        include snippets/fastcgi-php.conf;
#        fastcgi_pass php_upstream;        
#    }
    
    
location ~ \.php(.*)$ { # 正则匹配.php后的pathinfo部分
    root html;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
    fastcgi_param PATH_INFO $1; # 把pathinfo部分赋给PATH_INFO变量
    include        fastcgi_params;
}
参考文档 http://nginx.org/en/docs/http...
另外 变量是小写. 大写不确定有效.
26
2023-02
28
2022-11
25
2022-11
29
2022-10
19
2022-10
14
2022-10