https://bz.apache.org/bugzilla/show_bug.cgi?id=61202
--- Comment #2 from Dave <[email protected]> --- The GENERIC/FPM code path change in mod_proxy_fcgi.c looks very wrong, particularly the "TODO" part responsible for stripping off leading directory components (390:392) and appending PATH_INFO to SCRIPT_NAME (RFC3875 says no): 379 if (fpm || apr_table_get(r->notes, "virtual_script")) { 380 /* 381 * Adjust SCRIPT_NAME, PATH_INFO and PATH_TRANSLATED for PHP-FPM 382 * TODO: Right now, PATH_INFO and PATH_TRANSLATED look OK... 383 */ 384 const char *pend; 385 const char *script_name = apr_table_get(r->subprocess_env, "SCRIPT_NAME"); 386 pend = script_name + strlen(script_name); 387 if (r->path_info && *r->path_info) { 388 pend = script_name + ap_find_path_info(script_name, r->path_info) - 1; 389 } 390 while (pend != script_name && *pend != '/') { 391 pend--; 392 } 393 apr_table_setn(r->subprocess_env, "SCRIPT_NAME", pend); 394 ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, 395 "fpm:virtual_script: Modified SCRIPT_NAME to: %s", 396 pend); 397 } Other than rolling back the whole module to 2.6.25, it does indeed look like setting ProxyFCGIBackendType to GENERIC (which appears to work fine with FPM for me, too) is the solution. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
