Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 54624 invoked from network); 2 Aug 2006 19:49:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 19:49:35 -0000 Received: (qmail 60294 invoked by uid 500); 2 Aug 2006 19:49:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 60271 invoked by uid 500); 2 Aug 2006 19:49:21 -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 60239 invoked by uid 99); 2 Aug 2006 19:49:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 12:49:21 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of elberry@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 12:49:20 -0700 Received: by ug-out-1314.google.com with SMTP id q2so480880uge for ; Wed, 02 Aug 2006 12:48:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EqwE2M3BkxAKBIkW3w6F67MoR6RiB7SgIbEi3ZQbBAahlJu40abqVlWUyjEb5W7ZfkjOV1fupIOJ1U5ZzdKTP/VYw3x/1CHvXpZVDFGvpMKnUqJP9S+eKV5glTf9pY48EALFEhPw+Xqd8lrvB5ShtzO3dNlJ/XmdunqVLy8rb2Y= Received: by 10.67.89.5 with SMTP id r5mr1600623ugl; Wed, 02 Aug 2006 12:48:57 -0700 (PDT) Received: by 10.66.255.17 with HTTP; Wed, 2 Aug 2006 12:48:57 -0700 (PDT) Message-ID: <3bd11e000608021248h76e38bd2vd961c9361a38f80@mail.gmail.com> Date: Wed, 2 Aug 2006 12:48:57 -0700 From: "Eric Berry" To: "Tomcat Users List" Subject: Re: [OT: Apache] Re: Virtual Hosting with Apache and mod_jk In-Reply-To: <44D0F878.6030707@christopherschultz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bd11e000608021147s1f86cf8bl72787f3dbeebf1da@mail.gmail.com> <44D0F878.6030707@christopherschultz.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Chris, On 8/2/06, Christopher Schultz wrote: > Eric, > > > /*.jsp ajp13 > > /*.do ajp13 > > I assume these lines say "JkMount" before the paths...? This is correct, sorry (bad rectangular copy). > Are you using "name based virtual hosting" -- meaning that the hostname > chooses the VirtualHost? Or, do you have multiple IP addresses pointing > to the same server, and you are using IP address to choose the virtual host. > > If you are using "name based virtual hosting", then the ServerName head > is /required/ to make it work: you cannot get it to work using just the > IP address. I'm using name based virtual hosting and found a solution to my first problem by putting a VirtualHost in where the ServerName is the IP address of the machine, and pointing the DocumentRoot to the manual directory. DocumentRoot /opt/apps/apache2/manual ServerName 192.168.0.109 (This works for me, since I'll only be accessing it through the local network) > Generally, this is done with separate VirtualHost entries in httpd.conf, > with a separate set of JkMount directives in each one: the configuration > is handled entirely in Apache, so you don't have to do anything weird in > your Tomcat configuration (as long as your 's "defaultHost" is > set to the same value as your simple entry). > > You do not need to use mod_rewrite to do this. > > If you are going to be running separate applications for each > VirtualHost, I recommend running them in different instances of Tomcat. > This will allow you to administer them separately. Also, if you have to > take one of them offline (or one of them dies unexpectedly), the others > are not interrupted. I wanted to use mod_rewrite to avoid having to edit the httpd.conf and server.xml files whenever I wanted to add another host, but since there won't be more than 3 or 4, this will be fine. :) Thank you for the advice regarding multiple instances of Tomcat, this is a great idea and I will read the documentation on it, but if there are any pointers anyone has they'd be greatly appreciated. One last question, I recently tried to use Apache 2.2.3, and found that mod_jk wouldn't compile against it, has anyone had similar issues? I'm happy with Apache 2.0, but thought I'd ask. Thanks again, Eric -- Learn from the past. Live in the present. Plan for the future. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org