I have apache 2.0.? and Tomcat 5.5.? both running well. I am running multiple virtual hosts in Windows server 2003.
If I request my new JSP based homepage www.servername.com/home
I get (correctly) shifted through the mod_jk connector and
deposited in the correct "home" context in Tomcat. Everything works fine.
My goal is to be able to request www.servername.com
and have the request directed to www.servername.com/home
. At least for the initial page. I want to avoid having the user type the URL correctly. I would also rather avoid putting an HTML redirect in the way.
I've been told that I can use rewritting. I've enabled the mod_rewrite.so and tried many different options. I can never get the silly thing to work exactly as I'd like.
Also, no matter what I put in the mod_jk and rewritelog commands, I get empty log files. I know I could debug this thing if I could just see what's going on in the rewrite.
Here is the VH that I am attempting to use. Please bear in mind that this is the 100th different try I've made.
rewriterule ^.servername.com(.*) www.servername.com/home/$1
JkMount /home* worker1
JkMount /emba48wiki* worker1
JkMount /admin worker1
JkMount /manager worker1
JkMount /* worker1
Hope help is appreciated n advance.