Hi -
I thought I had all directions correct for setting up multiple hosts. But something strange is happening.
In DNS, both sub-domains (site1.mydomain.com and site2.mydomain.com) are pointing to the same IP.
I'm on Win 2008 R2, using Joomla for my two sites.
When I go to http://site1.mydomain.com, everything works fine.
But when I go to http://site2.mydomain.com, I get a message from my browser saying "can't find the server at http://www.site2.mydomain.com". So, I'm not sure why it's trying to add the "www" to my subdomain on the second one.
At the bottom of my http.conf file, I have it setup like this:
########################################
# Setup virtual host web sites
NameVirtualHost *:80
# localhost - works fine
<VirtualHost *:80>
ServerAdmin myemail@abccorp.com
DocumentRoot "c:/xampp/htdocs"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
# site 1 - works fine
<VirtualHost *:80>
ServerAdmin myemail@abccorp.com
ServerName site1.mydomain.com
DocumentRoot "C:/xampp/htdocs/site1"
ErrorLog logs/site1-error.log
CustomLog logs/site1.log combined
</VirtualHost>
# site 2 - doesn't work
<VirtualHost *:80>
ServerAdmin myemail@abccorp.com
ServerName site2.signonsystemsinc.com
DocumentRoot "C:/xampp/htdocs/site2"
ErrorLog logs/site2-error.log
CustomLog logs/site2.log combined
</VirtualHost>
########################################
In my Hosts file, I only have this:
127.0.0.1 localhost
I'm obviously missing something simple. Any suggestions would be appreciated.
Thanks,
Neal