httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artiom Morozov <>
Subject Re: mass-hosting and DOCUMENT_ROOT
Date Mon, 29 Apr 2002 16:57:55 GMT
Sorry, i can't check right now what i'm stating, but you can prepent 
this path to url and move it to DOC_ROOT with rewriterule.

îÁ 2002.04.29 19:17 Marten Lehmann ÎÁÐÉÓÁÌ:
> Hello,
> as far as I know there are 3 ways to realize mass-hosting with apache 
> (host to path translation):
> 1. mod_rewrite
> 2. virtualdocumentroot (mod_vhost_alias)
> 3. using a mod_perl-handler for URI-translation
> At this time I'm using the third way for my webhosting-system. But 
> all ways have one problem: They can't set DOCUMENT_ROOT for each 
> host, as it would have been set when the host would appear in 
> httpd.conf as virtualhost with documentroot-directive.
> My idea is to write my own apache-module, that does the host to path 
> translation and additionally set the DOCUMENT_ROOT variable. But 
> before I start, I would like to know, if it is possible to set this 
> environment-variable in this phase so it takes effect in the later 
> content-processing. I tried to set the variable inside my 
> mod_perl-handler, but when the script I called through http was 
> executed, the standard-document-root appeared again.

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