Click to See Complete Forum and Search --> : Two websites on 1 server...


TheBouleOfFools
11-17-2001, 04:39 PM
Is there a way with Apache so that I can set up 2 different webpages on my server? Say.. if I go to 1 DNS that points to port 8080 it goes to 1 webpage that's in /var/www, then if I go to another DNS that points to port 80 it goes to a different webpage in /var/www2.

The King Ant
11-17-2001, 05:29 PM
Yeah, it's called virtual hosting. You don't even have to use port 8080. There is some good info with examples on the apache webpage, but basically...

There are two different methods for virtual hosting: name based and ip based. With name based, you only need 1 ip address. With IP based you need multiple IP addresses. The disadvantage to name based over ip based are that you can't do ssl with more than 1 domain, and some super old web browsers may not work.