View Single Post
Old 09-24-2005, 11:09 PM  
zagi
Confirmed User
 
Join Date: Jan 2004
Posts: 1,238
NameVirtualHost ip1.ip1.ip1.ip1
NameVirtualHost ip2.ip2.ip2.ip2

<Virtualhost ip1.ip1.ip1.ip1>
ServerName site.com
ServerAlias www.site.com
DocumentRoot /home/user/domain.com
</VirtualHost>

<Virtualhost ip2.ip2.ip2.ip2>
ServerName site2.com
ServerAlias www.site2.com
DocumentRoot /home/user/domain2.com
</VirtualHost>

Technically the namevirtualhost stuff on top is only if you're going to host more than 1 virtual host / IP and in this case you're not but its there just to be safe.
__________________
Managed US/NL Hosting [ [Reality Check Network ]
Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562
zagi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote