httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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:
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message