From 039c798b43207d2465d0c189da23846ad593d727 Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Thu, 5 Sep 2024 22:00:20 +0000 Subject: [PATCH] Add fastcgi_path_info to default nginx configuration --- etc/rc.d/rc.nginx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/rc.nginx b/etc/rc.d/rc.nginx index be1d7fc03..7a86d0a22 100755 --- a/etc/rc.d/rc.nginx +++ b/etc/rc.d/rc.nginx @@ -386,7 +386,9 @@ build_locations(){ # # pass PHP scripts to FastCGI server listening on unix:/var/run/php-fpm.sock # - location ~ \.php$ { + location ~ ^(.+\.php)(.*)$ { + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_param PATH_INFO $fastcgi_path_info; include fastcgi_params; } #