Link to home
Start Free TrialLog in
Avatar of mithu11
mithu11

asked on

How to run multiple sites on tomcat and/or apache

I am running tomacat. I have one registered domain. I gave my dynamic ip of computer (having tomcat) in dns and now my website is running.
www.firstwebsite.com 
I had done this by adding index.html page in Root directory of tomcat which is home page of my website 'firstwebsite'

Now if I want to run an other website www.secondwebsite.com on same computer, how i would do that.
I have to give same ip in dns setting of my second website. but my compter should know some how that it is comming from www.firstwebsite.com or www.secondwebsite.com
Is it possible?

Also If i want to run Apache on differnt port like 8989 beside tomcat, can I give that port in my dns entry?
like 192.168.1.44:8989 .... some thing like that?

I am running windows xp and tomcat 5.5 on port 80.
Later may be I would like to add apache but on diffrerent port then 80.



Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada 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