httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: Use of env vars in httpd.conf wrt mod_rewrite
Date Tue, 16 Apr 2002 23:47:10 GMT

On Tue, 16 Apr 2002, David Pellegrini wrote:
> This works, but it's ugly, and repeats information I've already hardcoded in the
> DocumentRoot directive.  If I move my document root, I have to remember to
> update my RewriteCond's as well (and what are the chances of that happening the
> first time?).  Ideally I'd just dereference the value of DocumentRoot in my
> RewriteCond record, but I don't know how to do that (or if it's possible).
> So that's question #1.  As an alternative, I tried using SetEnv to establish the
> document root, then dereference it in the DocumentRoot and RewriteCond records,
> but that doesn't work.  Example:

Ummm... What's wrong with the DOCUMENT_ROOT environment variable that
is referenced here:


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

View raw message