You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Leo West <lw...@free.fr> on 1999/09/29 11:28:30 UTC

general/5077: Path problem when using directory Alias and CGI

>Number:         5077
>Category:       general
>Synopsis:       Path problem when using directory Alias and CGI
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Sep 29 02:30:01 PDT 1999
>Last-Modified:
>Originator:     lwest@free.fr
>Organization:
apache
>Release:        1.3.9
>Environment:
WinNT workstation 4.0
Server version: Apache/1.3.9 (Win32)
Server built:   Aug 16 1999 14:49:18
>Description:

Here is the case:

My serverRoot is d:/web

I create an alias on an external directory :
<Directory "d:/projects">
    Options ExecCGI Indexes
    Order allow,deny
    Allow from all
</Directory>

Alias	/projects	"d:/projects"

When requesting a CGI script in this aliased directory :
http://localhost/projects/myscript.php3

Thus there is no Apache error (200 in access.log) , i get a PHP error 
Fatal error: Unable to open d:/web/projects/myscript.php3 in - on line 0
No input file specified. 

See php error above : the file path given to PHP engine is not translated :
d:/web/projects/myscript.php3 
should be 
d:/projects/myscript.php3 

>How-To-Repeat:

>Fix:

>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 make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database 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!     ]