Req #71379 [Opn]: Add support for Apache 2.4 mod_proxy_balancer to FPM

From: Date: Sun, 08 Oct 2023 13:06:47 +0000
Subject: Req #71379 [Opn]: Add support for Apache 2.4 mod_proxy_balancer to FPM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245516@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71379&edit=1 ID: 71379 Updated by: bukka@php.net Reported by: matt at haught dot org Summary: Add support for Apache 2.4 mod_proxy_balancer to FPM Status: Open Type: Feature/Change Request Package: FPM related Operating System: FreeBSD PHP Version: 7.0.2 Block user comment: N Private report: N New Comment: I have been looking into this and I think it makes sense to do it this way. I initially had this issue noted as a bug as we have got balancer logic but that no longer works due to the correctly mentioned fact that it is no longer prefixed with proxy:balancer:// which was the case before. But more I look into it, more I think it should probably go just to master (next version). The thing is that there might be potential issue with SERVER_SOFTWARE that might be used for some potentially old Apache setups but not sure if that's really likely. But to be on the safe side it makes more sense to keep it as a feature request. I will try to do some more looking and experimenting before creating complete patch with a test. Previous Comments: ------------------------------------------------------------------------ [2016-01-15 03:54:16] matt at haught dot org Description: ------------ When using Apache 2.4's mod_proxy_balancer and fpm, Apache does not prefix the request with "proxy:fcgi://". As a result, the request from the balancer is never caught to have its query string cut out. Any request with a ? will then fail. The attached patch simply moves the existing query string cutting out of the "proxy:fcgi://" block and into its own. It only will make this action if env_server_software equals Apache rather the just those requests with the "proxy:fcgi://" prefix. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71379&edit=1

« previous php.bugs (#245516) next »