You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ron Soutter <rs...@comtech.com.au> on 1999/03/11 12:09:28 UTC
mod_cgi/4037: CGI append path info is document root based This was reported on 1.2b4?
>Number: 4037
>Category: mod_cgi
>Synopsis: CGI append path info is document root based This was reported on 1.2b4?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Mar 11 03:10:00 PST 1999
>Last-Modified:
>Originator: rsoutter@comtech.com.au
>Organization:
apache
>Release: 1.33 Redhat
>Environment:
Linux Slakware 3.5, Linux RedHat 5.2, GCC as supplied with Linux OS.
>Description:
Part of the output of my search program in diag mode.
env[20]: REQUEST_URI=/cgi-bin/search.exe/images?search_string=diag-env&num_docs=10&lines=10&search_thru=all
env[21]: SCRIPT_NAME=/cgi-bin/search.exe
env[22]: PATH_INFO=/images
env[23]: PATH_TRANSLATED=/home/www/images
Aliases as defined in srm.conf file.
Alias /icons/ /usr/local/apache/share/icons/
Alias /linux/ /home/linux/
Alias /images/ /home/www/doc/htmldocs/images/
Alias /srch_pd/ /home/www/srch_pd/
Alias /srch_ivr/ /home/www/srch_ivr/
I would expect that the Path_Translated line should be:
/home/www/doc/htmldocs/images and not /home/www/images
This problem also effects access to the Aliased directories as the browser displaying the search diag output cannot locate the images in the /srch_pd aliased directory.
>How-To-Repeat:
http://ivr.mel.comtech.com.au/cgi-bin/search.exe/images?query=diag-env
This will display the bad PATH_TRANSLATED.
>Fix:
I currently use a search.cfg file as a work around so the search.exe engine can resolve the damaged PATH_TRANSLATED information.
The mod_cgi module needs work but it is beyond me.
I have enough work on my plate getting this site operational.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]