httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fury <>
Subject Re: [users@httpd] DOCUMENT_ROOT and mod_vhost_alias
Date Sun, 16 Oct 2005 23:12:56 GMT
So would I be correct in recommending that the entire paragraph in the
apache docs be deleted, or changed to:

"The other thing to `fake' is the DOCUMENT_ROOT. But you can't do that." ;)

I get the impression that the author(s) had in mind one or more specific
solutions, but for whatever reason did not include them in the docs. Many
scripts and php apps use this variable (to my dismay), and it seems likely
that others may have found a fix or implemented a hack to get around the

Any ideas/suggestions are welcome!


On 10/16/05, Joshua Slive <> wrote:
> On 10/16/05, Fury <> wrote:
> > Hi,
> >
> > I'm messing around with mass virutal hosting (found here:
> >, and I'm
> > having trouble understanding what's going on with the DOCUMENT_ROOT
> > environment variable.
> > So how do I `fake' it?
> You can't, as far as I know.
> The general opinion has been that DOCUMENT_ROOT is not a useful thing
> to support, since it doesn't take into account Aliases, UserDir,
> Rewrites, etc. So CGI scripts shouldn't be using it in the first
> place.
> Joshua.
> ---------------------------------------------------------------------
> 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