httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérémie Balcaen <jeremie.balc...@c-w.be>
Subject [users@httpd] mod_jk and mod_rewrite
Date Mon, 26 Nov 2007 13:48:45 GMT
 

Hello, 

 

I want to combine mod_jk and mod_rewrite in Apache to send a rewritten URL to Tomcat.

 

Original URL : http://localhost/oasys/init

Rewritten URL : http://localhost/cwsoft/init

 

 

Since I want to forward the rewritten URL, I need to add the PT flag to the rewrite rule:

 

RewriteEngine on 

RewriteRule   ^/oasys/init$   /cwsoft/init [PT,L] 

 

But how can I apply the mod_jk rule to the original URL ?

 

I add this line:

 

JkMount /oasys/* tomcatserver 

 

but it does not work.

 

I can only add a rule on the rewritten URL. (with JkMount /cwsoft/* tomcatserver)

 

Is anybody have an idea how I can do that ?

 

If it is not possible, must I rewrite the URL in Tomcat ?

 

 

Jérémie


Mime
View raw message