You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Davide Giunchi <da...@libero.it> on 2002/07/23 12:12:45 UTC
change DOCUMENT_ROOT via mod_rewrite
How can i rewrite the content of the environment variable DOCUMENT_ROOT via
the mod_rewrite module?
I've a mass-virtual-hosting system based on mod_rewrite, everything is
working ok expect the DOCUMENT_ROOT that it's alsays refered to the principal
DocumentRoot directive (/web/htdocs).
In the doc page
http://httpd.apache.org/docs/vhosts/mass.html#overview
the problem is well explained ("The other thing to `fake' is the document
root ...") and it say that can be solved via the VirtualDocumentRoot
directive of the mod_vhost_dyn and via the mod_rewrite.
I've already tryied mod_vhost_dyn and it works but for various reason i
cannot use this, but how can i do this with mod_rewrite?
Regards.
--
Davide Giunchi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: change DOCUMENT_ROOT via mod_rewrite
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 23 Jul 2002, Davide Giunchi wrote:
> How can i rewrite the content of the environment variable DOCUMENT_ROOT via
> the mod_rewrite module?
> I've a mass-virtual-hosting system based on mod_rewrite, everything is
> working ok expect the DOCUMENT_ROOT that it's alsays refered to the principal
> DocumentRoot directive (/web/htdocs).
No, you can't change that environment variable. In general, it is not a
good idea to use that variable in scripts anyway, because
Aliases/symlinks/etc can all cause it to be misleading.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org