﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
881	Nginx with php-fpm + SSI	ehsan310@…		"Hello,

we have a php-fpm configured with nginx fastcgi ,

The problem is we have SSI in our html files which mentiones location which is php-backend ,

When we open that location directly in browser  , everythings works fine, but when we use SSI for the same location PATH_INFO is empty so our script doesn't work.


{{{
   location /backend { ## URL string to use for api ##
        alias /var/www/html/backend/web/; ## Site root for api code ##

        ## Check for file existing and if there, stop ##
        if (-f $request_filename) {
            break;
        }

        ## Check for file existing and if there, stop ##
        if (-d $request_filename) {
            break;
        }

        ## If we get here then there is no file or directory matching request_filename ##
        rewrite (.*) /backend/index.php?$query_string;

        ## Normal php block for processing ##
        location ~ \.php(?:$|/) {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param HTTP_IPCOUNTRY $geoip_country_code;
            fastcgi_pass php-handler;
            fastcgi_read_timeout 600; # Increase this to allow larger uploads
            access_log off; # Disable logging for performance
        }

    }
}}}















"	defect	closed	major	1.9	nginx-module	1.9.x	invalid			Linux Device-A37F2B 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: openresty/1.9.3.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.58 --add-module=../xss-nginx-module-0.05 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.29 --add-module=../form-input-nginx-module-0.11 --add-module=../encrypted-session-nginx-module-0.04 --add-module=../srcache-nginx-module-0.30 --add-module=../ngx_lua-0.9.16 --add-module=../ngx_lua_upstream-0.03 --add-module=../headers-more-nginx-module-0.26 --add-module=../array-var-nginx-module-0.04 --add-module=../memc-nginx-module-0.16 --add-module=../redis2-nginx-module-0.12 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.14 --add-module=../rds-csv-nginx-module-0.06 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-ipv6 --with-pcre-jit --with-http_stub_status_module --with-http_geoip_module --with-http_realip_module --with-http_ssl_module"
