File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes  Apache & Tomcat problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark " Apache & Tomcat problem" Watch " Apache & Tomcat problem" New topic

Apache & Tomcat problem

blue sky

Joined: Jul 20, 2003
Posts: 12
Hi all!
I use Apache & Tomcat to run Servlet & jsp. I've a problem like this :
I have 2 application app1 and app2
I deploy both of them run on 1 server like :
Ex : app1 :
app2 :
it's OK.
But I also want to config so that when I use then it runs app1 and then it run app2 (it means that I don't want to type /app1 or app2 after IP address anymore).
Could you please tell me how to do that?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Your display name is not valid. Please see the rules on JavaRanch display names here.
Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.
Please edit your profile so that your display name complies to the naming rules.
You should also be aware that accounts with invalid display names get deleted without warning, and are not eligible for book give-aways.
Mark Stein
Ranch Hand

Joined: May 20, 2002
Posts: 75
There are probably a couple of ways you can approach it, all dealing with the apache configuration. You gave an IP address rather than a domain name, so I'm guessing it's a local server.
Try configuing apache for two virtual hosts (you'll need to give each app an alias instead of a domain name), each pointing to a different app (you can use the same port that way). You could also try mod_rewrite.
I agree. Here's the link:
subject: Apache & Tomcat problem
It's not a secret anymore!