Gentoo Archives: gentoo-server

From: "Nicolas MASSÉ" <nicolas27.masse@×××××××.net>
To: gentoo-server@l.g.o
Cc: Hans-Christian Otto <c.otto@××××.de>
Subject: Re: [gentoo-server] apache config question
Date: Wed, 04 Oct 2006 07:48:19
Message-Id: 200610040945.51255.nicolas27.masse@laposte.net
In Reply to: Re: [gentoo-server] apache config question by Hans-Christian Otto
1 Hello,
2
3 On Wednesday 04 October 2006 06:55, Hans-Christian Otto wrote:
4 > If one finds the solution for this - would be nice if he could write it to
5 > the ML. Thanks,
6
7 You can use "mod_vhost_alias"
8
9 In your httpd.conf :
10
11 LoadModule vhost_alias_module modules/mod_vhost_alias.so
12
13 The virtual host declaration :
14
15 <VirtualHost _default_:80>
16 VirtualDocumentRoot "/var/www/%1"
17 </VirtualHost>
18
19 Then, you just have to put your web pages under /var/www/mail.
20
21 It should work. If it doesn't work, let me know. More information are at :
22 http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html
23
24 --
25 Nicolas MASSÉ
26 Pour récupérer ma clef GPG:
27 gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 0x2A18C433
28 Key fingerprint: 6621 FC23 5DC7 54BA B952 316A 50B1 BC3F 2A18 C433