Hi all,

I was trying to test fcgiwrap (a general-purpose FCGI daemon) with mod_proxy_fcgi, and found that the SCRIPT_FILENAME passed to the daemon isn't actually a file path. Instead, it ends up looking something like this:

    proxy:fcgi://localhost:4000/usr/local/apache2/cgi-bin/test-cgi

fcgiwrap doesn't much care for this.

Ideally (IMHO) the proxy: prefix for r->filename wouldn't be necessary for internal routing, but it looks like mod_proxy_fcgi is already stripping the proxy:balancer prefix to fix a similar issue with that module. So my patch adds the proxy:fcgi prefix to that logic:

    https://bz.apache.org/bugzilla/show_bug.cgi?id=59618

It looks like I stumbled into a bug with some serious history behind it. I think PHP-FPM currently works around this issue [1], but one of the PHP-FPM maintainers was (is?) not incredibly happy with the situation, and filed a pretty large umbrella bug that has been around for a while [2]. This seems like an easy way to move that larger bug forward.

Thoughts?

--Jacob

[1] https://bugs.php.net/bug.php?id=54152
[2] https://bz.apache.org/bugzilla/show_bug.cgi?id=51517

Reply via email to