Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Mod_jk & mod_rewrite on same app

romain bourgue

2007-02-20

Replies:


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@(protected)
http://www.opensubscriber.com/messages/users@(protected)

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.