Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 28615 invoked from network); 4 Feb 2004 20:06:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Feb 2004 20:06:48 -0000 Received: (qmail 81354 invoked by uid 500); 4 Feb 2004 20:05:56 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 81324 invoked by uid 500); 4 Feb 2004 20:05:56 -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 81200 invoked from network); 4 Feb 2004 20:05:54 -0000 Received: from unknown (HELO icebox.50below.com) (66.173.42.97) by daedalus.apache.org with SMTP; 4 Feb 2004 20:05:54 -0000 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: mod_jk and virtual folders? X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Wed, 4 Feb 2004 14:02:47 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mod_jk and virtual folders? thread-index: AcPrWdvnxhbWXD7hQF6ANnRMLt+BVQ== From: "Tim Diez" To: 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 Hello all,=20 I've been searching high and low but I can't seem to find out how to do the following. I'm a newbie here so please bear with me. I'd like to use apache and mod_jk to dynamically re-route all subfolders of my httpd web server to a single Tomcat webapp. I've got Apache running on port 80 with mod_jk configured to use tomcat on the same box. Tomcat is running on port 8080 http://www.myserver.com/ http://www.myserver.com:8080/mywebapp Folders /foo and /bar don't exist, and I need them to point to myserver.com:8080/mywebapp. The tricky part for me has been setting this up to be dynamically routed. What I'd like to do is have myserver.com/ route to myserver:8080/mywebapp, so I don't have to create a virtual host for every potential subfolder on myserver.com:80/ So, I need http://www.myserver.com/*/hello.do?param=3Dnada to map to http://www.myserver.com:8080/mywebapp/hello.do?param=3Dnada I need the url to always keep the original host/folder. I tried mod_rewrite, but it changes the URL after the redirection. If I use mod_jk any folders off of the default port 80 server have to co-exist as a webapp under tomcat(as far as I know).=20 Can anyone help me out on this?=20 Thanks! T- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org