Javier Barrio wrote:
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...
}

Yeah... something like that. Time to get out the old regex assistant. The hardest part of rewrite for me is it's always hunt and peck in the dark.... I've never figured out how to get apache to log it's attempts at matching.


b
--
[email protected] mailing list

Reply via email to