httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Geilman <jer...@adaptr.nl>
Subject Re: [users@httpd] url rewrite
Date Thu, 02 Jun 2011 01:23:25 GMT
On 06/01/2011 10:33 PM, Friedrich Locke wrote:
> Hi list users,
>
> this is my first post on this mailing list. My doubt is the following:
>
> Is it possible to redirect a document root based on the site address
> like in a template manner wihtout having to configure for each virtual
> system ?
>
> I mean this:
>
> Access to http://x.y.z/abc.html should be mapped to documentroot
> /var/web/x.y.z/abc.html ? but without having to set each mapping?
>

Yes; use mass virtual hosting:

     VirtualDocumentRoot /var/web/%0/



-- 
J.


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message