Fix #62172: FPM not working with Apache httpd 2.4 balancer/fcgi setup#1197
Fix #62172: FPM not working with Apache httpd 2.4 balancer/fcgi setup#1197haught wants to merge 1 commit intophp:masterfrom haught:master
Conversation
|
So it appears that recent versions of apache (just upgraded) have removed the prefix ( apache/httpd@01d1fce ), but I am still having to ignore anything after a ? in the env_script_filename, but now just outside the if statements referenced in the patch. char *p = strchr(env_script_filename, '?'); Without this somewhere, having a query string causes the file to not be found. Would this cause any problems with other web servers? |
… setup And change ignoring a query string in env_script_filename for Apache
|
I made an change in haught@642de27 to still work with older Apache versions that use the prefixes, but now it will remove the query string from env_script_filename for any request from Apache rather then just if proxy:balancer:// or proxy:fcgi:// is detected. |
|
This PR seems useful for old Apache version (ex 2.4.6 on RHEL-7) But I'm a bit reluctant with the I'm afraid of unexpected changes... Will prefer to really restreint this piece of code for proxy part (apache_was_here==1) |
|
Comment on behalf of remi at php.net: see http://git.php.net/?p=php-src.git;a=commit;h=07d2dcdf09fcfbd617031bd341384efb236de12c |
mod_proxy_balancer uses proxy:balancer:// instead of proxy:fcgi:// for its prefix. This patch simply adds support for this prefix based off of proxy:fcgi.