PDA

View Full Version : Virtual Hosts Help


swanley007
06-02-2006, 11:30 PM
Hello All;

I have an apache server running on a windows machine. I am trying to do virtual hosting (name based) so that I can have two sites on one IP. My domain and DNS host godaddy says it is ready on there end. I cannot get it to work though.

Here is my virtual host syntax:
NameVirtualHost 66.211.238.83

<VirtualHost 66.211.238.83>
ServerName www.stans****.com
DocumentRoot "C:/Program Files/xampp/htdocs/sites/stans****.com/site/web"
ErrorLog "C:/Program Files/xampp/htdocs/sites/stans****.com/local-logs/error.log"
CustomLog "C:/Program Files/xampp/htdocs/sites/stans****.com/local-logs/access.log" combined
</VirtualHost>

<VirtualHost 66.211.238.83>
ServerName www.s****computingsolutions.com
DocumentRoot "C:/Program Files/xampp/htdocs/sites/s****computingsolutions.com/site/web"
ErrorLog "C:/Program Files/xampp/htdocs/sites/s****computingsolutions.com/local-logs/error.log"
CustomLog "C:/Program Files/xampp/htdocs/sites/s****computingsolutions.com/local-logs/access.log" combined
</VirtualHost>




here is my windows/system32/drivers/etc/hosts file:

127.0.0.1 localhost
127.0.0.1 www.stans****.com
127.0.0.1 www.s****computingsolutions.com




I hope someone can help!!!

PS I am going on vacation to FL. I will try to check back while gone, but please don't quit if you don't hear bac right away.

Thanks in advance

swanley007
06-02-2006, 11:39 PM
Also as an update when I do navigate to www.stans****.com or www.s****computingsolutions.com

I get the directory structure as seen in htdocs