Gentoo Archives: gentoo-server

From: Javier Barrio <coder@×××××.org>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] apache config question
Date: Tue, 03 Oct 2006 07:33:03
Message-Id: 20061003093232.06d7e050@sloth
In Reply to: [gentoo-server] apache config question by Ben Munat
1 El Mon, 02 Oct 2006 21:21:55 -1000
2 Ben Munat <bent@×××××.com> dijo:
3
4 > Hello. Does anyone know how I can configure apache 2.0.x to map all
5 > requests to a given subdomain to a give directory regardless of the
6 > rest of the server name?
7
8 <VirtualHost *:80>
9 ServerName domain.com
10 ServerAlias www.domain.com
11 ServerAlias webmail.domain.com
12 ServerAlias ...
13 ServerAdmin ...
14 DocumentRoot "..."
15 ...
16 </VirtualHost>
17
18 The same applies for SSL ports.
19
20 No mod_rewrite needed for that.
21
22 --
23 echo "dpefsAgmv{p/psh" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
24 GnuPG key ID 0x6D2FF8B5 @ pgp.rediris.es
25 Gentoo Linux on IA32|sparc64
26 http://fluzo.org/

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-server] apache config question Hans-Christian Otto <c.otto@××××.de>