Bug 52710 - mod_fcgid should set PATH_INFO when configured in 'virtual' mode
mod_fcgid should set PATH_INFO when configured in 'virtual' mode
Status: NEW
Product: Apache httpd-2
Classification: Unclassified
Component: mod_fcgid
2.2.16
PC Linux
: P2 normal (vote)
: ---
Assigned To: Apache HTTPD Bugs Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-02-19 20:42 UTC by Eugene Crosser
Modified: 2012-07-02 12:48 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Crosser 2012-02-19 20:42:04 UTC
module version 2.3.6.
When you run FcgidWrapper with 'virtual' flag (because the application has its own URL namespace), the module does not set PATH_INFO and PATH_TRANSLATED, but instead set SCRIPT_NAME and SCRIPT_FILENAME in accordance with the URL from the HTTP request. The application usually wants to see the URL in the PATH_INFO environment variable. In addition to that, I could argue that setting SCRIPT_NAME from the URL is conceptually wrong.

I think that when the wrapper is specified with 'virtual' flag, the module must provide PATH_INFO and PATH_TRANSLATED. Providing SCRIPT_NAME and SCRIPT_FILENAME is superfluous and can be dropped (but it does no harm if it's present).