Header or Name-based Virtual Hosting in Apache Web Server 1.3.34
Procedure
Configure your httpd.conf in apache to handle the IP address and hosted domains in a modified virtual hosting setup that points all the hosted domian names to the various folders on the server as requiredHere is sample configuration for section 3 of the httpd.conf file to implement Name-based virtual hosting in Apache Web server 1.3.34
#===============
Namevirtualhost 111.22.33.41:port
<VirtualHost 111.22.33.41:port>
DocumentRoot /www/domain
ServerName www.yourfirst.tld
</VirtualHost>
<VirtualHost 111.22.33.41:port>
DocumentRoot /www/domainother
ServerName www.yourfirstother.tld
</VirtualHost>
<VirtualHost 111.22.33.41:port>
DocumentRoot /www/lastdomain
ServerName www.yourlastother.tld
</VirtualHost>
#===============
Features and Benefits
Commercial hosting services rarely allocate individual IP addresses to individual clients in discount packages. This is the configuration that they use with some automation to enable to creationa nd modification of individual accounts on the fly. his setup will enable you to host a virtually limitless number of domains on the same server without having to purchase as many IP addresses.
Draw-backs
Some implementations of this setup (if all the websites are based on one IP address) can have some consequences in the ranking of the hosted websites by search engines. if you are however hosting multiple related domain names on one IP address, this will not have any negative SEO implications.


