tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romain.bour...@agriculture.gouv.fr
Subject Mod_jk & mod_rewrite on same app
Date Tue, 20 Feb 2007 20:37:17 GMT

Hi,


I have a webapp "/app" installed on 2 Tomcat servers : one server is production "t1" and the
other, "t2", is development.

How can I, from a single apache (httpd) server, in a single virtualhost, redirect /app to
/app on t1 and /app_dev to /app on t2 ?


I tried the following but /app is then redirected to t2... :

JkMount /app/* t1

RewriteRule ^/app_dev/(.*)$ /app/$1 [PT]
JkMount /app/* t2

NB : I can't use mod_proxy_ajp, and I'd prefer not to add an another context path on tomcat...

A more direct question : is there a way to rewrite rules into mod_jk process ?


Thanks for helping,

Romain


--
This message was sent on behalf of romain.bourgue@agriculture.gouv.fr at openSubscriber.com
http://www.opensubscriber.com/messages/users@tomcat.apache.org/topic.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message