
bugzilla at apache
Nov 24, 2009, 11:46 PM
Post #2 of 2
(267 views)
Permalink
|
|
[Bug 48273] mod_proxy_fcgi sends broken SCRIPT_FILENAME / PATH_INFO
[In reply to]
|
|
https://issues.apache.org/bugzilla/show_bug.cgi?id=48273 --- Comment #2 from Edgar Frank <ef-lists [at] email> 2009-11-24 23:46:45 UTC --- (In reply to comment #1) > I've met the same problem, but I didn't know how to configure PHP to ignore it, > can you please describe your according PHP configuration? IIRC, building PHP with --enable-discard-path should do the job. (I use PHP with php-fpm as a FCGI backend) Maybe you have to set cgi.fix_path_info=On in your php.ini/php-fpm.conf , too. You can disable mod_proxy_fcgi from sending SCRIPT_FILENAME on the other hand, which makes PHP parse PATH_INFO and SCRIPT_NAME. Open mod_proxy_fcgi.c in $(apache_sourcedir)/modules/proxy, search for ap_add_common_vars(r); and add insert following line after it: apr_table_unset(r->subprocess_env, "SCRIPT_FILENAME"); Then, proceed with the usual build steps as described in the documentation. Please consider this rather a quick hack than a clean solution. Regards, Edgar -- 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
|