You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by LaJoie Chad <cl...@vt.edu> on 2000/12/22 16:59:22 UTC
os-windows/7009: Include directive only allows for files in the apache install directory
>Number: 7009
>Category: os-windows
>Synopsis: Include directive only allows for files in the apache install directory
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri Dec 22 08:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: clajoie@vt.edu
>Release: 1.3.14
>Organization:
apache
>Environment:
Windows 2000, Fix pack 1, using precompiled Apache 1.3.14 binaries.
>Description:
I am attempting to use the Include directive to read in a file from a location outside the Apache install directory. The error seems to be cause by apache not allowing files to be outside its install path. Here is the error I get:
[Fri Dec 22 10:52:10 2000] [error] Access to config file c:/program files/apache/c:\program files/tomcat/conf/mod_jk.conf-auto denied: not a valid filename
fopen: Permission denied
Apache.exe: could not open document config file c:/program files/apache/c:\progr
am files/tomcat/conf/mod_jk.conf-auto
As you can see it's prepending it's install directory in front of the absolute path I gave. If I try relative paths it will not interrupt them, for example
[Fri Dec 22 10:54:38 2000] [error] Access to config file c:/program files/apache/../tomcat/conf/mod_jk.conf-auto denied: not a valid filename
fopen: Permission denied
Apache.exe: could not open document config file c:/program files/apache/../tomcat/conf/mod_jk.conf-auto
I noted that it keeps saying the fopen is denied, however I have tried running apache in both administrative level access in system leve access and get the same results.
>How-To-Repeat:
I produce the mod_jk HOWTO included with Tomcat 3.2.1, presummably if those directions are followed on any windows 2000 (perhaps Windows machines in general) you would get the same results.
>Fix:
>Release-Note:
>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! ]