1 |
Javier Barrio wrote: |
2 |
> El Mon, 02 Oct 2006 22:20:36 -1000 |
3 |
> Ben Munat <bent@×××××.com> dijo: |
4 |
> |
5 |
>> No, this will still require me to add a VirtualHost entry for the |
6 |
>> mail subdomain of every domain on my system... in addition to a |
7 |
>> document root mapping. |
8 |
>> |
9 |
>> I want *any* request with a host name starting with "mail" to map to |
10 |
>> the same directory on my server regardless of the domain name. |
11 |
>> |
12 |
>> And actually, your example wouldn't even work for one domain because |
13 |
>> you only get one DocumentRoot... this maps domain.com, |
14 |
>> www.domain.com, and webmail.domain.com to the same root. |
15 |
> |
16 |
> Ahhh, ok, sorry, I misunderstood your question. |
17 |
> |
18 |
> Maybe searching for the equivalent in apache for that lighttpd evhost |
19 |
> will work: |
20 |
> |
21 |
> $HTTP["host"] =~ "^(mail.)?([^.]+)\.([a-z]{2,3})\.([a-z]{2,3})$" { |
22 |
> evhost.path-pattern = "/path/to/squirrel/" |
23 |
> ...rewrites...here... |
24 |
> } |
25 |
> |
26 |
Yeah... something like that. Time to get out the old regex assistant. |
27 |
The hardest part of rewrite for me is it's always hunt and peck in the |
28 |
dark.... I've never figured out how to get apache to log it's attempts |
29 |
at matching. |
30 |
|
31 |
|
32 |
b |
33 |
-- |
34 |
gentoo-server@g.o mailing list |