httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Using relative paths in <Directory>
Date Sun, 24 Sep 2006 17:16:54 GMT
On 9/24/06, Steve Swift <> wrote:
> If you want relative to the Document Root then consider using <Location>
> On 24/09/06, Vinay Y S < > wrote:
> > Hi,
> > I want to use relative paths in <Directory "relative/path/here"> and
> > all other places wherever paths are required; and change only the
> > ServerRoot and DocumentRoot based on where my server is installed. I
> > want to know if this path is relative to DocumentRoot or ServerRoot.
> > What I have observed till now is that it isn't relative to either of
> > them. It is relative to the current working directory of the
> > httpd process. Please confirm if this correct.
> >
> > When apache is run as a Windows service, what would be its current
> > working directory?

That isn't really a great suggestion for security reasons.  <Location>
should not be used for file-system locations, because it can be

This sounds like a problem that could best be solved with mod_macro,
mod_define, or similar config-processing module (or a config
pre-processor).  I haven't checked the code to see exactly how
relatively <Directory> sections are handled, but it is not something I
would recommend.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message