View Single Post
Old 12-22-2009, 04:05 PM  
frank7799
Confirmed User
 
frank7799's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
You can setup a domain name-based or IP-based. Either way, if you do not set up virtual hosts properly, it won´t work. Here is an example for a name-based host:

NameVirtualHost 172.16.1.100

<VirtualHost 172.16.1.100>

ServerName www.yourdomain.com
ServerAdmin admin@ yourdomain.com

DocumentRoot /var/www/hosts/www. yourdomain.com

Error logs/ yourdomain.com -error_log
Custom los/ yourdomain.com common

<Directory /var/www/virt-bin/yourdomain/>
AllowOverride None
Options ExecCGI
SetHandler cgi-script
</Directory>

</VirtualHost>
frank7799 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote