views:

310

answers:

1

Hi, I use Apache 2.2 and Tomcat 6.0.18 on Windows XP. I want to to redirect the URL that comes to my Apache instance into Tomcat with the module mod_jk.

I want to be able to redirect from http://localhost/myvanityURL to Tomcat where the app is located at http://localhost:8080/MyApp/Start. I have installed the module. If I enter the URL http://localhost/MyAppStart then it gets correctly redirected to Tomcat but I want the URL in Apache I'm missing where/how I set the rule to redirect http://localhost/myvanityURL to my actual URL in Tomcat. Do I need to use Rewrite rules or how should I do it? I have not made any configuration in Tomcat related to mod_jk.

My httpd.conf file

JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkMount /myvanityURL worker1 JkOptions +ForwardURIProxy

My workers.properties file

Define 1 real worker using ajp13

worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009

TIA, Magnus

A: 

This article ended up helping me get it work on a dev box.

http://www.johnturner.com/howto/winxp-howto.html

Magnus Lassi