Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 52558 invoked from network); 16 Sep 2005 12:53:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2005 12:53:44 -0000 Received: (qmail 95646 invoked by uid 500); 16 Sep 2005 12:53:24 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 95623 invoked by uid 500); 16 Sep 2005 12:53:24 -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 95609 invoked by uid 99); 16 Sep 2005 12:53:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2005 05:53:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.129.246.73] (HELO robosoftin.com) (203.129.246.73) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Sep 2005 05:53:34 -0700 Received: from WorldClient ([127.0.0.1]) by robosoftin.com (robosoftin.com [127.0.0.1]) (MDaemon.PRO.v7.2.3.R) with ESMTP id md50000575499.msg; Fri, 16 Sep 2005 18:30:16 +0530 Received: from [10.10.1.103] via WorldClient with HTTP; Fri, 16 Sep 2005 18:30:15 +0530 Date: Fri, 16 Sep 2005 18:30:15 +0530 From: "Mahesh S Kudva" To: "Tomcat Users List" Subject: Re: Virtual Hosts MIME-Version: 1.0 Content-Type: text/plain Message-ID: X-Mailer: WorldClient 7.2.3 In-Reply-To: <4329E020.7080809@robododge.com> References: <4329E020.7080809@robododge.com> X-Spam-Processed: robosoftin.com, Fri, 16 Sep 2005 18:30:16 +0530 (not processed: message from valid local sender) X-MDRemoteIP: 127.0.0.1 X-Return-Path: mahesh.kudva@robosoftin.com X-MDaemon-Deliver-To: tomcat-user@jakarta.apache.org X-MDAV-Processed: robosoftin.com, Fri, 16 Sep 2005 18:30:18 +0530 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. And am sure it will work on other platforms as well. This setup also handles Apache related webapps.. Make the required entries in the DNS webapp.war: Extract the war file using zip and rename the folder with .war extension. Please put it in your deployment folder. mod-jk.so: Obtain the modjk.so library file from www.apache.org and place then in the modules folder. Apache-Virtual Host config ---------------------- NameVirtualHost *.*.*.*:80 ServerName webapp.domainname.com ServerAlias www.webapp.domainname.com ServerAdmin root@localhost DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war JkMount /* loadbalancer DirectoryIndex index.html index.jsp ErrorLog logs/webapp-error_log CustomLog logs/webapp-access_log common ------------------------------------------------------------------------- mod-jk.conf ================ LoadModule jk_module /opt/apache2/modules/mod_jk.so JkWorkersFile /opt/apache2/conf/workers.properties JkLogFile /opt/apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /webapp.domain.com/*.jsp loadbalancer JkMountFile /opt/apache2/conf/uriworkermap.properties JkShmFile /opt/apache2/logs/jk.shm JkMount status Allow from 127.0.0.1 Deny from All -------------------------------------------------------------------------- Server.xml --------- www.webapp.domain.com -------------------------------------------------------------------------- -- uriworkermap.properties ================ /jmx-console=loadbalancer /jmx-console/*=loadbalancer /web-console=loadbalancer /web-console/*=loadbalancer /webapp.domain.com/*.jsp -------------------------------------------------------------------------- -- workers.properties ================ worker.list=loadbalancer,status worker.webapp.port=8009 worker.webapp.host=webapp.domain.com worker.webapp.type=ajp13 worker.webapp.lbfactor=1 worker.webapp.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=library worker.loadbalancer.sticky_session=1 worker.loadbalancer.local_worker_only=1 worker.list=loadbalancer worker.status.type=status _____________________ Regards & Thanks ================ Mahesh S Kudva -----Original Message----- From: Steve Dodge To: Tomcat Users List Date: Thu, 15 Sep 2005 15:57:04 -0500 Subject: Re: Virtual Hosts > You probably want to change the appBase. You can control the contexts > by > creating a context snippet in conf/[Engine name]/[Host name] or add it > to META-INF/context.xml in each war. > > Hope that helps, > Steve > > Durfee, Bernard wrote: > > >Okay, so I created two elements in my server.xml... > > > > > appBase="webapps" > > autoDeploy="true" > > deployOnStartup="true" > > deployXML="true" > > unpackWARs="true" > > xmlValidation="false" > > xmlNamespaceAware="false" /> > > > > > appBase="webapps" > > autoDeploy="true" > > deployOnStartup="true" > > deployXML="true" > > unpackWARs="true" > > xmlValidation="false" > > xmlNamespaceAware="false" /> > > > >...but how do I tell Tomcat which context to process? There will be no > >context correct? Do I need a separate appBase directory for each > > >element? > > > >Thanks, > >Bernie > > > > > > > > > > > >>-----Original Message----- > >>From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] > >>Sent: Thursday, September 15, 2005 12:10 PM > >>To: Tomcat Users List > >>Subject: RE: Virtual Hosts > >> > >> > >>Simplistically ... > >> > >>Configure Host elements inside your Engine. Create a folder > >>for each application within webapps. Set the Host docBase to each. > >> > >>Check out the online ref. > >> > >> > >> > >>>-----Original Message----- > >>>From: Durfee, Bernard [mailto:Bernard.Durfee@suny.edu] > >>>Sent: 15 September 2005 17:07 > >>>To: tomcat-user@jakarta.apache.org > >>>Subject: Virtual Hosts > >>> > >>> > >>>I am having trouble configuring virtual hosts in Tomcat > >>> > >>> > >>5.5.9. I have > >> > >> > >>>two applications app01 and app02. I have 2 DNS entries > >>>app01.myserver.com and app02.myserver.com that both point to the > >>>machine on which Tomcat is running. How do I configure > >>> > >>> > >>Tomcat to serve > >> > >> > >>>from app01.war when app01.myserver.com is hit and app02.war when > >>>app02.myserver.com is hit. > >>> > >>>Thanks, > >>>Bernie > >>> > >>> > >>> > >>> > >>> > >>--------------------------------------------------------------------- > >> > >> > >>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >>> > >>> > >>> > >>> > >> > >>------------------------------------------------------- > >>QAS Ltd. > >>Registered in England: No 2582055 > >>Registered in Australia: No 082 851 474 > >>------------------------------------------------------- > >> > >>Disclaimer: The information contained within this e-mail is > >>confidential and may be privileged. This email is intended > >>solely for the named recipient only; if you are not > >>authorised you must not disclose, copy, distribute, or retain > >>this message or any part of it. If you have received this > >>message in error please contact the sender at once so that we > >>may take the appropriate action and avoid troubling you > >>further. Any views expressed in this message are those of > >>the individual sender. QAS Limited has the right lawfully to > >>record, monitor and inspect messages between its employees > >>and any third party. Your messages shall be subject to such > >>lawful supervision as QAS Limited deems to be necessary in > >>order to protect its information, its interests and its reputation. > >> > >>Whilst all efforts are made to safeguard Inbound and Outbound > >>emails, QAS Limited cannot guarantee that attachments are > >>virus free or compatible with your systems and does not > >>accept any liability in respect of viruses or computer > >>problems experienced. > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >> > >> > >> > >> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org ------------------------------------------------------- Robosoft Technologies - Partners in Product Development --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org