Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_jk rewrite problem

Status
Not open for further replies.

kb2001

MIS
May 22, 2006
31
US
I had an odd setup come to me, and I'm having trouble getting it working correctly

We have an apache instance running to serve 3 instances of an application, each with a different context

app.domain.com/app1a/
app.domain.com/app1b/
app.domain.com/app1c/

Each of these is forwarded to tomcat using JkMount successfully, to servers names app1a, app1b, and app1c. Moving forward, these will be served with the same context (app), and I need to configure apache to be able to handle this still

So, where a requests is received for app.domain.com/app1a/, apache will need to forward this to tomcat with a URI of /app/ instead of /app1a/.

So, the following url pairs need to display the same results (assuming that tomcat has both an AJP connector on 8009 and an HTTP connector on 8080 configured):




Current httpd.conf within the virtualhost directive for app.domain.com :

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /app1a/* app1atomcat
JkMount /app1b/* app1btomcat
JkMount /app1c/* app1ctomcat


##
workers.properties file

worker.app1atomcat.host=app1a.domain.com
worker.app1atomcat.port=8009
worker.app1atomcat.type=ajp13

worker.app1btomcat.host=app1b.domain.com
worker.app1btomcat.port=8009
worker.app1btomcat.type=ajp13

worker.app1ctomcat.host=app1c.domain.com
worker.app1ctomcat.port=8009
worker.app1ctomcat.type=ajp13


Any ideas on where I can start looking to solve this? I've been reading that the JkOption +ForwardURIProxy is what I'm looking for, but I can't sem to figure how to use it correctly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top