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/ |