Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 12491 invoked from network); 2 Dec 2008 18:26:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Dec 2008 18:26:35 -0000 Received: (qmail 36641 invoked by uid 500); 2 Dec 2008 18:26:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36620 invoked by uid 500); 2 Dec 2008 18:26:31 -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 36609 invoked by uid 99); 2 Dec 2008 18:26:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 10:26:31 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.227.30.149] (HELO mailserver.kippdata.de) (195.227.30.149) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 18:25:03 +0000 Received: from [192.168.2.100] ([192.168.2.100]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id mB2IIG2g015618 for ; Tue, 2 Dec 2008 19:18:17 +0100 (CET) Message-ID: <49357BCE.3030100@kippdata.de> Date: Tue, 02 Dec 2008 19:17:50 +0100 From: Rainer Jung User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Can I specify virtual hosts in JKMounts? References: <49356634.5030006@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Jonathan Mast schrieb: > Thanks for the response, I didn't know JkMount directives could be placed > within VirtualHost declarations. Older versions of mod_jk tolerated putting JkMount in the global server, not any vhost. All those mounts were automatically copied to all vhosts. Since a couple of releases you actually have to put your JkMounts into the VHosts, or use the JkMountCopy (On|All) construction. See JkMount and JkMountCopy in http://tomcat.apache.org/connectors-doc/reference/apache.html I suggest you make sure to use a recent version (most recent is 1.2.27) and put your JkMount into the individual VHosts. > Our httpd.conf uses the following: > > > JkWorkersFile /usr/local/tomcat/conf/workers.properties > JkLogFile logs/jk.log > JkLogLevel error > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > > > This is located beneath all our VirtualHost declarations, I presume it must > be declared before the virtualhost stuff, in order for the JkMount directive > to be recognized, correct? I think putting it above is not necessary, but you should in general - put the JkMount inside the VHosts, or if appropriate use JkMountCopy - decide whether you want a separate log file per VHost (then add a JkLogFile with a separate filoe name to each vhost) or only one common consolidated log file - consider using rotatelogs for your JkLogFile. It works syntactically the same way you use it with Apache ErrorLog. > And won't all the VirtualHost decls have to be within the > tags? The IfModule tags do not add any functionality except when the module is not loaded (no LoadModule for mod_jk executed), apache ignore all parts contained inside the IfModule. It allows you to switch faster between a configuration using mod_jk and not using it. If you always want to use it for this Apache, it adds a little unsafety, because if you forget to load mod_jk, you won't get any error. Without the IfModule Apache will complain, that it does not know about the Jk directives. Regards, Rainer --------------------------------------------------------------------- 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