Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 3661 invoked from network); 2 Aug 2005 14:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2005 14:02:46 -0000 Received: (qmail 1650 invoked by uid 500); 2 Aug 2005 14:02:16 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 1601 invoked by uid 500); 2 Aug 2005 14:02:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1561 invoked by uid 99); 2 Aug 2005 14:02:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2005 07:02:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.116.175.21] (HELO first-episode.co.uk) (194.116.175.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2005 07:02:03 -0700 Received: (qmail 3754 invoked from network); 2 Aug 2005 15:01:29 +0100 Received: from spc1-leat1-4-0-cust17.asfd.broadband.ntl.com (HELO ?192.168.0.2?) (80.0.89.17) by 194.116.175.21 with SMTP; 2 Aug 2005 15:01:29 +0100 Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stuart Saunders Subject: Multiple domains accessing one web app. Date: Tue, 2 Aug 2005 15:02:56 +0100 To: Tomcat Users List X-Mailer: Apple Mail (2.730) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi list Our system is designed so that multiple domains can have independently branded versions of the same web app. The situation we are struggling to resolve is this. We have a two domains accessing one web app on a third domain. the set up is domain1.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site1 domain2.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site2 In this configuration when the user logs on to domain1.com the session cookie is coming from mydomain.com not domain1.com and is producing "http error 400" and unless the user sets their browser to accept all cookies, will not let them log on to the system. We have tried to set up the host elements in the server.xml so that: domain1.com resolves directly to /webapp/site1 and domain2.com resolves directly to /webapp/site2 This solves the cookie/login problem but implements a more serious problem. If domain1 is accessed first after a server restart it will communicate on port 12345, which is all fine but if a user then logs in via domain2 the interface that they use will not connect to the server as the port is already used by domain1. We have very little experience with Tomcat, we have tried all the usual routes (google, forums , reading the manual etc) Can anyone suggest a way to solve this? Regards Stuart --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org