wood burning stoves 2.0*
The moose likes Tomcat and the fly likes using mod_rewrite and mod_jk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "using mod_rewrite and mod_jk " Watch "using mod_rewrite and mod_jk " New topic
Author

using mod_rewrite and mod_jk

doug parker
Ranch Hand

Joined: Oct 26, 2004
Posts: 30
i have a java web application on a apache2 + mod_jk1.2 + tomcat5.5 combo. I want a friendly url for my webapp search. I have that correctly done with mod_rewite - i see it in the log. issue is, it is trying to serve the file from htdocs instead of letting mod_jk handle it.

the only way i have gotten it to work is to use the [R] flag for my rewrite rule. i dont want that because the user sees that convoluted query string url instead of the friendly url. also tried [PT] but mod_jk didnt pick up the request.

does mod_jk and mod_rewrite work together?

I see the is a servlet filter for url rewriting. i hate to go down that route!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: using mod_rewrite and mod_jk
 
Similar Threads
jkMount with apache loading glassfish subdomains
htaccess and mod_rewrite issue
Big Problem to run Jforum 2.1.6 on Tomcat 5.0.28
Does mod_rewrite work with mod_jk?
how to configure and check mod_rewrite and mod_jk with Apache 2.0