1 |
El Mon, 02 Oct 2006 22:20:36 -1000 |
2 |
Ben Munat <bent@×××××.com> dijo: |
3 |
|
4 |
> No, this will still require me to add a VirtualHost entry for the |
5 |
> mail subdomain of every domain on my system... in addition to a |
6 |
> document root mapping. |
7 |
> |
8 |
> I want *any* request with a host name starting with "mail" to map to |
9 |
> the same directory on my server regardless of the domain name. |
10 |
> |
11 |
> And actually, your example wouldn't even work for one domain because |
12 |
> you only get one DocumentRoot... this maps domain.com, |
13 |
> www.domain.com, and webmail.domain.com to the same root. |
14 |
|
15 |
Ahhh, ok, sorry, I misunderstood your question. |
16 |
|
17 |
Maybe searching for the equivalent in apache for that lighttpd evhost |
18 |
will work: |
19 |
|
20 |
$HTTP["host"] =~ "^(mail.)?([^.]+)\.([a-z]{2,3})\.([a-z]{2,3})$" { |
21 |
evhost.path-pattern = "/path/to/squirrel/" |
22 |
...rewrites...here... |
23 |
} |
24 |
|
25 |
-- |
26 |
echo "dpefsAgmv{p/psh" | perl -pe 's/(.)/chr(ord($1)-1)/ge' |
27 |
GnuPG key ID 0x6D2FF8B5 @ pgp.rediris.es |
28 |
Gentoo Linux on IA32|sparc64 |
29 |
http://fluzo.org/ |