Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 48273] mod_proxy_fcgi sends broken SCRIPT_FILENAME / PATH_INFO

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Nov 24, 2009, 4:09 PM

Post #1 of 2 (284 views)
Permalink
[Bug 48273] mod_proxy_fcgi sends broken SCRIPT_FILENAME / PATH_INFO

https://issues.apache.org/bugzilla/show_bug.cgi?id=48273

Dodou Wang <wangdong.08 [at] gmail> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |wangdong.08 [at] gmail

--- Comment #1 from Dodou Wang <wangdong.08 [at] gmail> 2009-11-24 16:09:12 UTC ---
(In reply to comment #0)
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?

Thank you.
Dodou

> 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).
>

--
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


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

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.