Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 44937 invoked from network); 12 Jun 2009 12:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jun 2009 12:14:51 -0000 Received: (qmail 40316 invoked by uid 500); 12 Jun 2009 12:14:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 40270 invoked by uid 500); 12 Jun 2009 12:14:59 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 40259 invoked by uid 99); 12 Jun 2009 12:14:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 12:14:59 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [130.132.232.16] (HELO legolas.med.yale.edu) (130.132.232.16) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 12:14:48 +0000 Received: from moussaka.med.yale.edu (moussaka.med.yale.edu [128.36.29.108]) by email.med.yale.edu (PMDF V6.2-X17 #31441) with ESMTPS id <0KL42EW26KO1I4@email.med.yale.edu> for users@tomcat.apache.org; Fri, 12 Jun 2009 08:14:26 -0400 (EDT) Date: Fri, 12 Jun 2009 08:14:25 -0400 From: Mark Shifman Subject: Re: canonical hostnames for tomcat server In-reply-to: <49002b820906120233l338e1911hf147925efe33b8ff@mail.gmail.com> To: Tomcat Users List Message-id: <4A3246A1.6010603@yale.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 2.0.0.21 (X11/20090302) X-Enigmail-Version: 0.95.6 References: <49002b820906120233l338e1911hf147925efe33b8ff@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org host name aliases may help http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Host%20Name%20Aliases d tbsky wrote: > Hi: > i have a tomcat server, which can be access by many ways, like > > http://portal.example.com > http://portal > http://192.168.1.1 > > i want to user to use only "http://portal.example.com". other ways > will be redirect to the canonical hostname. > > i found i can do this with "apache + mod_rewrite + tomcat" or > "tomcat + urlrewritefilter". > > i wonder if there are simpler solutions. can tomcat do this by > itself via configuration? > > thanks for help!! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 mark.shifman@yale.edu --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org