Name based virtual hosting

 Name based virtual hosting also called shared IP hosting the virtual
host serve multiple host name on a single machine with a IP address this
is possible because a resources form a web server using  http.name
 based virtual
hosting is usually simpler since we need only configure your DNS server
to map each host names to the correct.  IP  address and then confirm the http
server to recognize we the diff host names to use name based hosting must design  the IP address in the server that will be accepting request for the
hosts this  is configured using the name virtual host directive if we planning
to use multiple ports example: running  SSL you should add a port to the
argument to note and mention the IP address name based does not automatically
make the server listen to that IP address if any IP address specified it
must be associated with a network interface on the server with name based
virtual hosting the server relies on the client to report the host name as
part of the http address headers using the same IP address name based hosting
your  DNS  server  to map each host name to the correct IP address name based
virtual hosting builds off of the IP based virtual host select algorithm
meaning that searches for the proper name occur only between virtual host
that have the best name based address. With the default configuration you are only serving up one site, and that site is based on your IP address. What I’m setting up is name-based virtual hosting, meaning the Apache server will serve specific content based on the domain name requested. In this way a single server can host multiple sites, and serve up unique content based on the domain requested.My preferred method of using name based virtual hosting is creating a separate file for each domain. These can all be done within one file, but I’ll be creating a new file for each site in name based virtual hosting.