Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65758 invoked from network); 1 Jun 2010 18:36:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 18:36:23 -0000 Received: (qmail 76120 invoked by uid 500); 1 Jun 2010 18:36:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75863 invoked by uid 500); 1 Jun 2010 18:36:19 -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 75847 invoked by uid 99); 1 Jun 2010 18:36:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 18:36:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of genterie@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 18:36:14 +0000 Received: by gwb11 with SMTP id 11so3400592gwb.18 for ; Tue, 01 Jun 2010 11:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=e73zkNjLJojWPBIr8caSmhu0bwV2MckCE07kII0U1/M=; b=f4BtzpqlgeKnVC0k27zSOv+XprVn2aptaZeJ6I/tqKxMpCDBufpGetSqHj+82t2A+T 2xFpLXhrIWrbkJEqvMbz3AWXarPcbN9JAhtm3YeOrMxXQgpY/p/wm/4l54XB03rLuwKv 5Ygjd96Ujfvmma74S0GOWIyefsHUvzzBRa2Lg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=R2ihqTwEzGVmpAhdDiHr8f9GpTucVf60oNTQbploWlsk6aPue79S6jT1NHHjlFT+VD 4vwsmcYvU1ZWWOJ8z+X5wY9JnmGks6iiQbezgTo5tYb1uAJZozdgB0geamXtpbiUTjhd uduo3Icaf1/hmCDsezEJE4ka1WjJDp/cCIg4Q= MIME-Version: 1.0 Received: by 10.42.5.81 with SMTP id 17mr290065icv.29.1275417351670; Tue, 01 Jun 2010 11:35:51 -0700 (PDT) Received: by 10.231.207.75 with HTTP; Tue, 1 Jun 2010 11:35:51 -0700 (PDT) Date: Tue, 1 Jun 2010 10:35:51 -0800 Message-ID: Subject: apache2 tomcat6.0.26 mod_jk From: Rathna To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=00504502d0e12fca830487fc3e72 --00504502d0e12fca830487fc3e72 Content-Type: text/plain; charset=ISO-8859-1 Let's say I own two websites. 1) batman.com 2) superman.com I have two web applications hosted in tomcat6 under webapps. 1) /usr/local/tomcat6/webapps/ batman 2) /usr/local/tomcat6/webapps/superman I would like to configure apache in such a way that when I type the url http://www.batman.com the website under /batman should be served. Likewise if I type the url http://www.superman.com the website under /superman should be served. Right now, I can only get it working if I type http://www.batman.com/batmanor http://www.superman.com/superman. My settings are as follows: /etc/apache2/sites-enabled/batman: ServerAdmin webmaster@localhost ServerName batman.com ServerAlias www.batman.com JkMount / worker1 JkMount /* worker1 ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined /etc/apache2/sites-enabled/superman: ServerAdmin webmaster@localhost ServerName superman.com ServerAlias www.superman.com JkMount / worker1 JkMount /* worker1 ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined /etc/apache2/worker.properties: # Define worker worker.list=worker1 # Set properties for worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 /etc/apache2/apache2.conf: #Load jk_module LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so # workers.properties path JkWorkersFile /etc/apache2/workers.properties # JK shared memory path JkShmFile /var/log/apache2/mod_jk.shm # JK Log path JkLogFile /var/log/apache2/mod_jk.log # JK log level [debug/error/info] JkLogLevel info # Log Timestamp format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " I'm running this on Ubuntu 9.0.4 OS. I'm really stuck. Any help would be much appreciated. Thank you. --00504502d0e12fca830487fc3e72--