This is called virtual hosting in apache and there are two main variations :
1) IP based virtual hosting. This is where you have multiple real ip addresses and want to serve them all from a single http server. You have to get the IP routing set up thru your ISP to send all of the ip addresses to you. See -->
2) More common nowadays is where you only have a single real IP address but want to run multiple sites on the same address. This is called name based virtual hosting. You just configure the dns records for all the sites you want to host to point to the same IP address. Then you configure apaches' httpd.conf file to discriminate between the traffic based on whats in the http/1.1 header record, i.e. url. See -->
(The content for each virtual server is in the DocumentRoot directory)
Apache is very good at this and you can also do mass virtual hosting to easily host hundreds of such sites on one box - for that and other stuff see the other docs at -->
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.