Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 85378 invoked from network); 7 Aug 2003 16:08:55 -0000 Received: from leibniz.math.fu-berlin.de (HELO math.fu-berlin.de) (160.45.40.10) by daedalus.apache.org with SMTP; 7 Aug 2003 16:08:55 -0000 Received: (qmail 8417 invoked by uid 9804); 7 Aug 2003 18:08:56 +0200 Received: from localhost (HELO math.fu-berlin.de) (127.0.0.1) by localhost with SMTP; 7 Aug 2003 18:08:43 +0200 Received: (Qmail 8239 invoked from network); 7 Aug 2003 18:08:42 +0200 Received: From lin210.mi.fu-berlin.de (160.45.45.210) by leibniz.math.fu-berlin.de with SMTP; 7 Aug 2003 18:08:42 +0200 Received: from dello by lin210.mi.fu-berlin.de with local (Exim 3.35 #1 (Debian)) id 19knJi-0003Ae-00 for ; Thu, 07 Aug 2003 18:08:42 +0200 Date: Thu, 7 Aug 2003 18:08:42 +0200 From: Karsten Dello To: tomcat-user@jakarta.apache.org Subject: mod_jk-problem with rewritten urls Message-ID: <20030807160842.GC11018@inf.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Envelope-Sender: dello@inf.fu-berlin.de X-Virus-Scanned: by AMaViS 0.3.12pre7-U25[8245](NAI-uvscan@mi.fu-berlin.de) X-Remote-IP: 160.45.45.210 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N dear list, i have a problem with the conjunctional use of mod_rewrite and mod_jk. i set up apache 2.0.40 and tomcat 4.1.27 and compiled mod_jk from source. i made them use the same webroot, and processing of jsp by tomcat works great as long as mod_rewrite is not involved. but i have rewrite-rules which transform "static-looking" html-urls into parameterized jsp-urls. in these cases, mod_rewrite seems to work, but the jsp isn't processed by tomcat, and instead its source is send to the client. an example: a client requests the url /fb-publikationen/60326.html which is supposed to be transformed to /pd/viewdetail.jsp?db=60326&style=1, and afterwards to be processed by tomcat. the affected rewrite-rule is RewriteRule ^/fb-publikationen/([0-9]+).html$ /pd/viewdetail.jsp?db=$1&style=1 [PT] mod_rewite's log says: 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200] [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) init rewrite engine with requested uri /fb-publikationen/60326.html 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200] [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) rewrite/fb-publikationen/60326.html -> /pd/viewdetail.jsp?db=60326&style=1 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200] [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) forcing '/pd/viewdetail.jsp' to get passed through to next API URI-to-filename handler mod_jk's log says: [Wed Aug 06 03:38:19 2003] [jk_uri_worker_map.c (501)]: Attempting to map URI '/fb-publikationen/60326.html' [Wed Aug 06 03:38:19 2003] [jk_uri_worker_map.c (623)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match so it seems that the url is rewritten, but after that it is not send to tomcat again, as i can't find the transformed jsp-url in the mod_jk-log. is this a conceptual problem, or a configuration error? any help would be appreciated, best regards karsten dello