Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Mod_JK Apache - site redirection

Posted on 2011-10-13
3
Medium Priority
?
227 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:Tigger996
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
fcontrepois earned 2000 total points
ID: 36970996
reference

Set  the path "" in a Context element within <Host> in server.xml on Tomcat.
Example
<Context docBase="/var/lib/tomcat6/webapps/search/" path="" reloadable="true>
0
 

Author Comment

by:Tigger996
ID: 36988535
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
0
 

Author Comment

by:Tigger996
ID: 36989358
I figured it out.  Thanks for your help!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses
Course of the Month10 days, left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question