tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raúl Gutiérrez Sánchez <>
Subject Tomcat 4.1 -- mod_rewrite / mod_jk problem
Date Thu, 06 Nov 2003 15:54:23 GMT

I use Apache 2.0 and Tomcat 4.1.18 together to serve jsp pages and
servlets (using mod_jk). Everything seems to work fine except one thing.
When mod_rewrite try to apply a pattern matching over a location mounted
by JkMount, it fails because the URI used is only the filename
(excluding the path information). Example:

.conf :

Alias /xxx  "/opt/jakarta/tomcat/webapps/xxx"

JkMount /xxx/secure/*.jsp ajp13
JkMount /xxx/*.jsp ajp13

<Location "/xxx/">
    #AllowOverride None
    RewriteEngine on
    RewriteCond %{SERVER_PORT} !=443
    RewriteRule ^.*/xxx/secure(.*)$ https://%{SERVER_NAME}/xxx/secure$1

rewrite log :

[per-dir /xxx/] applying pattern '^.*/xxx/secure(.*)$' to uri 'page.jsp'
[per-dir /xxx/] pass through page.jsp 

Rewrite works fine if I omit the JkMount directives.

Any help is welcome

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message