Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29742 invoked by uid 500); 26 Nov 2002 08:29:11 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 29729 invoked from network); 26 Nov 2002 08:29:11 -0000 Received: from tcen-ul-mailsv00.telkom.co.za (198.54.206.130) by daedalus.apache.org with SMTP; 26 Nov 2002 08:29:11 -0000 Received: from CNTRRA20-GTW01.telkom.co.za (CNTRRA20-GTW01.telkom.co.za [165.143.130.156]) by tcen-ul-mailsv00.telkom.co.za (8.11.2/8.11.2/2002061301) with SMTP id gAQ8THa31964 for ; Tue, 26 Nov 2002 10:29:17 +0200 Received: FROM CNTRRA20-XS00.telkom.co.za BY CNTRRA20-GTW01.telkom.co.za ; Tue Nov 26 10:29:13 2002 +0200 Received: from CNTRRA20-XS11.telkom.co.za ([165.143.131.216]) by CNTRRA20-XS00.telkom.co.za with Microsoft SMTPSVC(5.0.2195.5329); Tue, 26 Nov 2002 10:29:13 +0200 Received: from PRTRRA06-XS11.telkom.co.za ([165.144.220.121]) by CNTRRA20-XS11.telkom.co.za with Microsoft SMTPSVC(5.0.2195.5329); Tue, 26 Nov 2002 10:29:12 +0200 Received: from PRTRRA06-XS02.telkom.co.za ([165.144.220.130]) by PRTRRA06-XS11.telkom.co.za with Microsoft SMTPSVC(5.0.2195.5329); Tue, 26 Nov 2002 10:29:13 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2002 10:29:07 +0200 Message-ID: <52AF0E850FEDAA48A5251638E15511171A5BBC@prtrra06-xs02.telkom.co.za> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Apache 1.3.27 + Namebased virtual hosts + SSL Thread-Index: AcKUYke/nbZZAnk/Q6uMhBlH0aFj1QADIPyQAAORTyAAAaeQIAAkddcAAANE70AAAGkWYA== From: "Martyn Longhurst (MJ)" To: X-OriginalArrivalTime: 26 Nov 2002 08:29:13.0159 (UTC) FILETIME=[E6665570:01C29525] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Apache + Tomcat Okay, this is what I have, it still doesn't work, but hey, it's the trying that counts In the httpd.conf file, I removed the alias I had pointing to the directory /webuser/directoryname Then I enabled the proxy module in the httpd.conf file and added the following: ProxyPass /url alias/ http://server ip:8000/tomcat server alias ProxyReversePass /url alias/ http://server ip:8000/tomcat server alias Although where in the httpd.conf file I'm supposed to stick these lines is beyond me, but I presume that they are supposed to be stuck in the area where you enable the proxy. Now I get a forbidden error, I don't have permissions to access the /alias/ on this server. -----Original Message----- From: Boyle Owen [mailto:Owen.Boyle@swx.com]=20 Sent: 26 November 2002 10:13 To: users@httpd.apache.org Subject: RE: [users@httpd] Apache + Tomcat The idea of a proxy is that apache acts as a remote browser for you. You define URL in your server (e.g. http://your-server/jsp-stuff) which looks like it refers to a local directory, like DOCUMENT_ROOT/jsp-stuff. This directory doesn't need to exist (in fact, it shouldn't). The ProxyPass directive matches requests to this URL to another server (Tomcat). This means that if you have: ProxyPass /jsp-stuff http://tomcat-server:8000/jsp then a request for http://your-server/jsp-stuff/page.jsp will cause apache to request http://tomcat-server:8000/jsp/page.jsp for you and return the data as if the client requested the page directly from the tomcat server. There is a wealth of documentation - go to the main apache site and follow the links for Jakarta. Rgds, Owen Boyle >-----Original Message----- >From: Martyn Longhurst (MJ) [mailto:LonghuJM@telkom.co.za] >Sent: Dienstag, 26. November 2002 07:36 >To: users@httpd.apache.org >Subject: RE: [users@httpd] Apache + Tomcat > > >Okay, this is great. I am getting somewhere now, but I am still having >a little trouble grasping the proxy concept and if I implement the >proxy will I have to change the directory structure on my we >directories? Is it possible to run the jsp and shtml etc in the same >directory and merely proxy on file extension? > >Or better yet, is there a comprehensive guide out there that gives >insight into configuring apache and tomcat?=20 > >Regards, > > > -----Original Message----- >From: Boyle Owen [mailto:Owen.Boyle@swx.com]=20 >Sent: 25 November 2002 03:13 >To: users@httpd.apache.org >Subject: RE: [users@httpd] Apache + Tomcat > >>-----Original Message----- >>From: Martyn Longhurst (MJ) [mailto:LonghuJM@telkom.co.za] >> >>... And then, I was wondering if I could run Apache and Tomcat >>off of the same port or do I have to use separate ports?=20 > >You must use separate ports - process requires a distinct socket to >bind >to. > >I don't know about the web.xml stuff and so on, but a very simple way >to >run tomcat with apache is to have apache on port, tomcat on port 8000 >and then proxy all tomcat content via apache, e.g. > >ProxyPass /jsp-stuff/ http://localhost:8000/ >ProxyPassReverse /jsp-stuff/ http://localhost:8000/ > >then a request for http://your-server/jsp-stuff/your-page.jsp (i.e. >which goes to apache) will be fulfilled internally by a request to >http://localhost:8000/your-page.jsp. > >Rgds, > >Owen Boyle > >This message is for the named person's use only. It may contain >confidential, proprietary or legally privileged information. No >confidentiality or privilege is waived or lost by any mistransmission. >If you receive this message in error, please notify the sender >urgently >and then immediately delete the message and any copies of it from your >system. Please also immediately destroy any hardcopies of the message. >You must not, directly or indirectly, use, disclose, distribute, >print, >or copy any part of this message if you are not the intended >recipient. >The sender's company reserves the right to monitor all e-mail >communications through their networks. Any views expressed in this >message are those of the individual sender, except where the message >states otherwise and the sender is authorised to state them to be the >views of the sender's company.=20 > >--------------------------------------------------------------------- >The official User-To-User support forum of the Apache HTTP Server >Project. >See for more info. >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org >For additional commands, e-mail: users-help@httpd.apache.org > > > >--------------------------------------------------------------------- >The official User-To-User support forum of the Apache HTTP=20 >Server Project. >See for more info. >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org >For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org