Link to home
Start Free TrialLog in
Avatar of Tigger996
Tigger996

asked on

Mod_JK Apache - site redirection

Tomcat running on 8080 -- default install
Apache using vhost mydomain.com
Mod_jk working fine

Instead of working like this:  http://mydomain.com/search  -->mod_jk loads tomcat default page (equiv to http://mydomain.com:8080
I'd like it to go to: http://mydomain.com  --> modjk loads equiv to http://mydomain.com:8080/search

So essentially I'd like to remove the subfolder off the url and go straight to the app.

Make sense?

I'm sure I just have to add something to my server.xml file but not sure where to start as I have not done a whole lot in tomcat before.

TIA
Tigger996
ASKER CERTIFIED SOLUTION
Avatar of Frank Contrepois
Frank Contrepois
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tigger996
Tigger996

ASKER

Ok, that works great.  But what will happen when I add other domains to that machine (through apache)
so I'd like what we have above...

Then I'll have another app that sits in /mynewapp
And I'll want that pointed to  mynewapp.mydomain.com

Tigger996
I figured it out.  Thanks for your help!