Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 37925 invoked by uid 500); 1 Aug 2002 13:41:55 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 37913 invoked from network); 1 Aug 2002 13:41:54 -0000 Received: from 198-93-112-61.xdsl.qx.net (HELO rhiannon.rcbowen.com) (198.93.112.61) by daedalus.apache.org with SMTP; 1 Aug 2002 13:41:54 -0000 Received: from localhost (localhost [127.0.0.1]) by rhiannon.rcbowen.com (8.10.2/8.9.3) with ESMTP id g71Dfm325824; Thu, 1 Aug 2002 09:41:48 -0400 Date: Thu, 1 Aug 2002 09:41:48 -0400 (EDT) From: Rich Bowen To: , Subject: Re: Virtual Hosting with Wildcards In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 1 Aug 2002, Peter Callaghan wrote: > Hello, I am running Apache 1.3.26 on Slackware 8.0. We are a hosting > company that currently has around 50 sites. As one of the services, we > offer our client access to webmail for each domain, normally > "webmail.theirdomain.com". The problem that I am having is that I want to > be able to set up an address for the webmail without having to include each > domain in the VirtualHost section as a ServerAlias. > > I have attempted to set the default location to be the webmail, so that any > unresolved vhost will hit that. Unfortunately, this works for the server > name and the IP address but not for unresolved names. > > I am aware that you are able to user wildcards as in *.yourdomain.com but I > would like to be able to do something like webmail.* so that > webmail.anything would be resolved to the proper page. > > Can anyone make a suggestion as to how I might get this working? You might want to look at mod_vhost_alias as a possible solution. Failing that, this looks like a job for mod_rewrite. There is an example of using mod_rewrite for vhost stuff, in the vhost docs (http://httpd.apache.org/docs/vhosts/) which does something similar. -- Rich Bowen - rbowen@apache.org http://www.amazon.com/exec/obidos/registry/3GDC3KN82W4AO --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org