| 
 
| 本帖最后由 堡塔运维小林 于 2023-3-20 17:26 编辑 
 环境:
 
 系统::windows  面板:BT7.7.0
 语言:php7.2
 
 
 开启TP的伪静态后,可能存存类似 /index.php/A/B 此类的访问,那么,nginx 的配置文件php/72.conf 将会出现问题,例如:
 
 location ~ \.php(.*)$ {
 try_files $uri =404;
 fastcgi_pass   127.0.0.1:20072;
 fastcgi_index  index.php;
 
 fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 fastcgi_param  PATH_INFO  $fastcgi_path_info;
 
 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 include        fastcgi_params;
 }
 
 像/index.php/A/B 此类的URI,将会优先匹配到此规则,而 try_files将会抛出404错误。
 
 
 
 | 
 |