You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Raúl Gutiérrez Sánchez <ra...@laeff.esa.es> on 2003/11/06 16:54:23 UTC

Tomcat 4.1 -- mod_rewrite / mod_jk problem

Hello,

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
[R,L]
</Location>



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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org