diff --git a/etc/rc.d/rc.nginx b/etc/rc.d/rc.nginx index 8a527cd07..ab245da56 100755 --- a/etc/rc.d/rc.nginx +++ b/etc/rc.d/rc.nginx @@ -411,7 +411,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; } #