Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 88153 invoked from network); 1 Oct 2003 17:18:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Oct 2003 17:18:02 -0000 Received: (qmail 4234 invoked by uid 500); 1 Oct 2003 17:17:29 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 4206 invoked by uid 500); 1 Oct 2003 17:17:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 4193 invoked from network); 1 Oct 2003 17:17:29 -0000 Received: from unknown (HELO cmailg5.svr.pol.co.uk) (195.92.195.175) by daedalus.apache.org with SMTP; 1 Oct 2003 17:17:29 -0000 Received: from user-2974.wfd17.dsl.pol.co.uk ([81.79.75.158] helo=talk21.com) by cmailg5.svr.pol.co.uk with esmtp (Exim 4.14) id 1A4kbU-0000e5-JS for tomcat-user@jakarta.apache.org; Wed, 01 Oct 2003 18:17:32 +0100 Date: Wed, 1 Oct 2003 18:17:31 +0100 Subject: Re: connectors documents Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Mark Lowe To: "Tomcat Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <4913.66.75.241.88.1065027987.squirrel@www.greenhydrant.com> Message-Id: <242FB30A-F433-11D7-9145-0003937DAEC0@talk21.com> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Your unrockable certainty that you have it is a help is nothing else.. I'll let you know when its working. Cheers Mark On Wednesday, October 1, 2003, at 06:06 PM, David Rees wrote: > On Wed, October 1, 2003 at 2:13 am, Mark Lowe sent the following >> Yeah i know, >> I did.. and now i'm trying a cheeky question to the dev list.. >> >> They seem to be more interested in other stuff on the user list.. >> >> Given that both tomcat and apache are so great i'm surprised that they >> continue to be plagued by this connector business. How many years now? >> , I'm not sure, but if there was reason not to use these technologies >> then connectors would be it.. > > Well, it's certainly confusing for some people, so if you find a way to > make it less confusing, please submit some patches to the developers! > >> I thought a mail to the folks who are involved with this stuff could >> be >> the way forward. Its great to see an example on jk2 and vhosts , it >> would be even better if it worked. > > There are questions about Tomcat connectors posted to the -user list > all > the time, your question fits right in. > >> So to repeat my question on both lists.. > > (I am only responding to tomcat-user) > >> Is there any documentation, on jk, jk2 or mod_webapp that explains >> configuring vhosts in a sensible manner that doesn't just go as far as >> http://domain/webappname .. because frankly that bit is easy, and >> suffers from chocolate fire-guard syndrome in terms of it utility. > > It is a piece of cake. Using Apache1 or Apache2, mod_jk (I have not > tried > mod_jk2 myself) and Tomcat 4.1.27) here are a couple sample configs > with 2 > vhosts using the root context. > > In Apache's httpd.conf, you need these settings for the virtual hosts: > > JkWorkersFile /tomcat_workers.properties > > ServerName vhost1 > JkMount /*.jsp tomcat1 > > ServerName vhost2 > JkMount /*.jsp tomcat1 > > In your tomcat_workers.properties: > worker.list=tomcat1 > worker.tomcat1.port=8007 > worker.tomcat1.host=localhost > worker.tomcat1.type=ajp13 > > In your Tomcat's server.xml: > > > > > > > > > I've stripped out all the config settings not related to getting vhosts > working in Apache/Tomcat above, but you should get the idea. > > -Dave > > > --------------------------------------------------------------------- > 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