
bugzilla at apache
Nov 24, 2009, 6:22 AM
Post #1 of 1
(186 views)
Permalink
|
|
[Bug 48273] New: mod_proxy_fcgi sends broken SCRIPT_FILENAME / PATH_INFO
|
|
https://issues.apache.org/bugzilla/show_bug.cgi?id=48273 Summary: mod_proxy_fcgi sends broken SCRIPT_FILENAME / PATH_INFO Product: Apache httpd-2 Version: 2.3-HEAD Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Other Modules AssignedTo: bugs [at] httpd ReportedBy: ef-lists [at] email When running mod_proxy_fcgi as a reverse proxy, it breaks the SCRIPT_FILENAME environment variable. Assuming the following configuration directive (in an otherwise smoothly running Apache): ProxyPass /imp fcgi://host:port and a GET request to http://myhost/imp/index.php This will set SCRIPT_FILENAME (from request_rec->filename) to proxy:fcgi://host:file/index.php In the maybe most popular case of PHP, this breaks PHP in determining the correct script to call. Even if SCRIPT_FILENAME is an Apache extension and not in the CGI-standard, PHP reacts very sensitive to it, so it should be fixed (although PHP might be configured in a way to ignore it). When changing the above config directive to: ProxyPass / fcgi://host:port/ a GET / results in PATH_INFO being set to proxy:fcgi://host:port/ , which obviously is bogus in the sense of the CGI standard. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe [at] httpd For additional commands, e-mail: bugs-help [at] httpd
|