From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GUkfQ-0007S3-12 for garchives@archives.gentoo.org; Tue, 03 Oct 2006 13:50:40 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k93Dnk8W021620; Tue, 3 Oct 2006 13:49:46 GMT Received: from mail.chipin.com (mail.chipin.com [209.85.46.150]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k93DlTOt021008 for ; Tue, 3 Oct 2006 13:47:29 GMT Received: from [192.168.1.100] (cpe-72-130-214-183.hawaii.res.rr.com [72.130.214.183]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.chipin.com (Postfix) with ESMTP id DF305AB80E9 for ; Tue, 3 Oct 2006 08:10:44 -0500 (CDT) Message-ID: <452269E2.7000200@munat.com> Date: Tue, 03 Oct 2006 03:47:14 -1000 From: Ben Munat User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] apache config question References: <45220F93.5070207@munat.com> <20061003093232.06d7e050@sloth> <45221D54.8060906@munat.com> <20061003104723.3dcb8f91@sloth> In-Reply-To: <20061003104723.3dcb8f91@sloth> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 512af580-4067-4fb2-be1c-011beaf9a691 X-Archives-Hash: 56caf3928ecc8aa07999fb55ecb9faa7 Javier Barrio wrote: > El Mon, 02 Oct 2006 22:20:36 -1000 > Ben Munat 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 -- gentoo-server@gentoo.org mailing list