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 : http://172.10.30.10/app1 app2 : http://172.10.30.10:81/app2 it's OK. But I also want to config so that when I use http://172.10.30.10 then it runs app1 and http://172.10.30.10:81 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?
"javavina", 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. thanks, Dave.
Mark Stein
Ranch Hand
Joined: May 20, 2002
Posts: 75
posted
0
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. MS
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.