Gentoo Archives: gentoo-server

From: Ben Munat <bent@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] apache config question
Date: Tue, 03 Oct 2006 08:59:20
Message-Id: 452225C7.7040205@munat.com
In Reply to: Re: [gentoo-server] apache config question by Hans-Christian Otto
1 Hans-Christian Otto wrote:
2 >> <VirtualHost *:80>
3 >> ServerName domain.com
4 >> ServerAlias www.domain.com
5 >> ServerAlias webmail.domain.com
6 >> ServerAlias ...
7 >> ServerAdmin ...
8 >> DocumentRoot "..."
9 >> ...
10 >> </VirtualHost>
11 >>
12 >> The same applies for SSL ports.
13 >>
14 >> No mod_rewrite needed for that.
15 > Guess he meant that this should happen automatically and he does'nt want to
16 > add the subdomain to every domain... Would be nice to know for me, too.
17
18 Right... plus I don't think the example given would even work if the
19 ServerAliases listed need to go to different directories. I don't think
20 there's any way to do this without mod_rewrite... hoping someone can
21 just slip me the correct rule.
22
23 b
24 --
25 gentoo-server@g.o mailing list