Apache server documentation provides us clear set of steps to do
name/IP based virtual hosting which is stated in the below URL
http://httpd.apache.org/docs/2.0/vhosts/examples.html
- Running several name-based web sites on a single IP address.
- Name-based hosts on more than one IP address.
- Serving the same content on different IP addresses
- Running different sites on different ports
- IP-based virtual hosting
- Mixed port-based and ip-based virtual hosts
- Mixed name-based and IP-based vhosts
- Using Virtual_host and mod_proxy together
- Migrating a name-based vhost to an IP-based vhost
- Using the ServerPath directive