You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Michael Miller <mk...@netcom.com> on 1997/07/29 23:10:02 UTC
mod_cgi/935: Relative URL's that include cgi-bin don't seem to work
>Number: 935
>Category: mod_cgi
>Synopsis: Relative URL's that include cgi-bin don't seem to work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Jul 29 14:10:01 1997
>Originator: mke@netcom.com
>Organization:
apache
>Release: 1.2.1
>Environment:
Server is running on a SunOS 4.1.4 system.
>Description:
When using non absolute URL's the apache server doesn't properly deal
with cgi-bin. IE a URL that only includes /cgi-bin/foo.cgi ends up
being interpreted as SERVER_ROOT/htdocs/cgi-bin/foo.cgi, not
SERVER_ROOT/cgi-bin/foo.cgi
The NCSA httpd 1.5.1 deals with this correctly.
>How-To-Repeat:
create a document that uses something in cgi-bin, but don't use an absolute
URL.
>Fix:
Have the server check to see if the URL is not asolute. If it isn't check
for cgi-bin. If you see cgi-bin, fetch SERVER_ROOT/cgi-bin/whatever.cg
>Audit-Trail:
>Unformatted: