Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20012 invoked from network); 27 Jan 2010 18:06:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 18:06:09 -0000 Received: (qmail 76466 invoked by uid 500); 27 Jan 2010 18:06:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76380 invoked by uid 500); 27 Jan 2010 18:06:05 -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 76367 invoked by uid 99); 27 Jan 2010 18:06:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 18:06:05 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [167.78.2.21] (HELO dit00smamso001.doh.state.fl.us) (167.78.2.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 18:05:56 +0000 Received: from dit00sesmail01.services.ds.state.fl.us ([164.51.255.104]) by dit00smamso001.doh.state.fl.us (8.13.8/8.13.8) with ESMTP id o0RI5XhL003810 for ; Wed, 27 Jan 2010 13:05:34 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA9F7B.42BFA75B" Subject: Supporting multiple hostnames with one TomCat? Date: Wed, 27 Jan 2010 13:05:07 -0500 Message-ID: <814CA7C986123448AD7399C539154D9D607E59@dit00sesmail01.services.ds.state.fl.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Supporting multiple hostnames with one TomCat? Thread-Index: Acqfe0IZ6NSPXtH9QpChbiKNaMKxqA== From: "Hare, Tim" To: X-Spam-Score: undef - spam scanning disabled X-CanItPRO-Stream: base:NoFooter (inherits from base:default) X-Scanned-By: CanIt (www . roaringpenguin . com) on 167.78.2.21 ------_=_NextPart_001_01CA9F7B.42BFA75B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We are running TomCat on z/OS on an IBM mainframe, but I don't think that's relevant to my issue (just including it for complete documentation). We are moving from some CGI scripts to servlets . On the old web server, we could code=20 =20 Exec /prodcgi_URL_value/* /prod_cgi_directory/* prodhostname Exec /testcgi_URL_value/* /test_cgi_directory/* testhostname =20 Etcetera, which allowed the mere change of the hostname in URLs to get production or test code, and allowed one instance of the web server to serve pages for both environments. Is it possible to do this with contexts under TomCat, or will I need multiple TomCats listening on different ports to have a production and test environments? Can I specify a hostname when I deploy and can I relate it to a different file URL? =20 Thanks Tim Hare Senior Systems Programmer Southwood Shared Resource Center Office: 850.488.4989 mailto:Tim.Hare@ssrc.myflorida.com =20 Please Note: Florida has a very broad public records law. Most written communications to or from state officials regarding state business are public records available to the public and media upon request. Your email communications may therefore be subject to public disclosure. =20 ------_=_NextPart_001_01CA9F7B.42BFA75B--