Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 39007 invoked from network); 12 Feb 2008 15:35:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 15:35:10 -0000 Received: (qmail 30743 invoked by uid 500); 12 Feb 2008 15:35:00 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30518 invoked by uid 500); 12 Feb 2008 15:34:59 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30507 invoked by uid 99); 12 Feb 2008 15:34:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 07:34:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.239.230.68] (HELO mx2.evermind.de) (213.239.230.68) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 15:34:14 +0000 Received: from mx2.evermind.de (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 1977D496A for ; Tue, 12 Feb 2008 16:34:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on ws.evermind.de X-Spam-Level: Received: from pc14.lan (dslb-088-074-151-097.pools.arcor-ip.net [88.74.151.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: michael@wyraz.de) by mx2.evermind.de (Postfix) with ESMTP for ; Tue, 12 Feb 2008 16:34:44 +0100 (CET) Message-ID: <47B1BC8A.4050701@wyraz.de> Date: Tue, 12 Feb 2008 16:34:34 +0100 From: Michael Wyraz User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Implementing wildcard hostnames or aliases References: <47B15382.20904@wyraz.de> <47B184D8.4070301@wyraz.de> <47B1A4FE.8050208@pidster.com> In-Reply-To: <47B1A4FE.8050208@pidster.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-93.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.9 Hi Pid, > Is there a reason why you can't exploit the defaultHost attribute of > the Engine element in server.xml? > Using the default host would result in that I can do that wildcard mapping only for one host. Additionally also any other host that maps to any if der server's IPs and even the IPs itself would be mapped to the default domain. Currently I'm running a workaround with apache+mod_rewrite+mod_proxy+mod_header: I set the "host" to one host that is mapped in tomcat. Then I set an extra header which contains original host. My Servlet checks if that header exists and uses this instead of the host header. Not a fine solution but it works for the moment. regards, Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org