El Mon, 02 Oct 2006 22:20:36 -1000
Ben Munat <[EMAIL PROTECTED]> dijo:

> No, this will still require me to add a VirtualHost entry for the
> mail subdomain of every domain on my system... in addition to a
> document root mapping.
> 
> I want *any* request with a host name starting with "mail" to map to
> the same directory on my server regardless of the domain name.
> 
> And actually, your example wouldn't even work for one domain because
> you only get one DocumentRoot... this maps domain.com,
> www.domain.com, and webmail.domain.com to the same root.

Ahhh, ok, sorry, I misunderstood your question.

Maybe searching for the equivalent in apache for that lighttpd evhost
will work:

$HTTP["host"] =~ "^(mail.)?([^.]+)\.([a-z]{2,3})\.([a-z]{2,3})$" {
  evhost.path-pattern = "/path/to/squirrel/"
  ...rewrites...here...
}

-- 
echo "dpefsAgmv{p/psh" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
GnuPG key ID 0x6D2FF8B5 @ pgp.rediris.es
Gentoo Linux on IA32|sparc64
http://fluzo.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to