tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karsten Dello <>
Subject mod_jk-problem with rewritten urls
Date Thu, 07 Aug 2003 16:08:42 GMT
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
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: - - [06/Aug/2003:03:38:19 +0200]
[WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) init rewrite engine with requested uri /fb-publikationen/60326.html - - [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 - - [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

View raw message