Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 68340 invoked from network); 2 Oct 2007 08:46:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 08:46:29 -0000 Received: (qmail 6067 invoked by uid 500); 2 Oct 2007 08:46:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 6035 invoked by uid 500); 2 Oct 2007 08:46:05 -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 6002 invoked by uid 99); 2 Oct 2007 08:46:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 01:46:05 -0700 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.245.231.195] (HELO mail116.messagelabs.com) (195.245.231.195) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 02 Oct 2007 08:46:06 +0000 X-VirusChecked: Checked X-Env-Sender: daniel.garland@titanemail.com X-Msg-Ref: server-11.tower-116.messagelabs.com!1191314623!25260741!1 X-StarScan-Version: 5.5.12.14.2; banners=titanemail.com,-,- X-Originating-IP: [217.150.99.98] Received: (qmail 19095 invoked from network); 2 Oct 2007 08:43:43 -0000 Received: from mailgate.hr-superstore.co.uk (HELO mail.titan.net) (217.150.99.98) by server-11.tower-116.messagelabs.com with SMTP; 2 Oct 2007 08:43:43 -0000 Received: from dangfc.epos.com (unknown [192.168.1.6]) by mail.titan.net (Postfix) with ESMTP id 3D8D8305AB3 for ; Tue, 2 Oct 2007 09:37:03 +0100 (BST) Message-ID: <470212CC.7020703@titanemail.com> Date: Tue, 02 Oct 2007 09:43:40 +0000 From: Daniel M Garland User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: why/how to use ajp connector... References: <185768.22081.qm@web57402.mail.re1.yahoo.com> In-Reply-To: <185768.22081.qm@web57402.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You use this connector to relay requests to a certain URL pattern to Tomcat, so you can have part of your website as static HTML served by apache and part of it hosted by Tomcat, which could be running your server-side Java. Perhaps you have a jsp contact form on your static site that needs to capture user signups; well you'd have /signups to be your contact form and the Tomcat server would be hosting that page. Other advantages are related to functionality in apache but not in Tomcat, so you often see people asking about mod_rewrite in Tomcat, and the textbook response is to have apache sitting in front of Tomcat to use mod_rewrite, seems overkill for me but there are other reasons too. As for the last point, everything goes through apache and only content that matches a URL is forwarded to Tomcat. You'll have a log file configured mod_jk.log. HTH Dan Garland loredana loredana wrote: > Ok, my project manager asked me to set up a server with tomcat, apache and ajp connector. This is the first time I do it and after reading some of the documentation on the ajp connector I still can't figure out it's purpose. Can anybody tell me what is it's use? I read > > "This is used for cases > where you wish to invisibly integrate Tomcat 4 into an existing (or new) > Apache installation, and you want Apache to handle the static content > contained in the web application" > > I don't know if I understand that right. Can anybody give me a simple example? > > And one more question. After reading the documentation and making the changes to the configuration and everything, when I run my application how can I test/verify that the connector is working? how can I determine if apache is handling the static content and not tomcat? > > 10x in advance and sorry for if the question sounds too "newby" > > > > > ____________________________________________________________________________________ > Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! > http://tv..yahoo.com/collections/3658 > > > --------------------------------------------------------------------- > 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 > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- 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