Alright i'm stumped..
I have two domain names, and a dynamic IP address so I've subscribed to Dyndns.com which my router keeps up-to-date.
Anyways, problem is I've got a OpenSUSE 10.3 system running apache 2.2.4, which I have created two virtual hosts to catch each of the domain names.
I have the following in my config file.
Code:
<VirtualHost *>
ServerName www.domain1.com
ServerAlias domain1.com *.domain1.com
DocumentRoot /home/damon/public_html/domain1
DirectoryIndex index.php index.html index.htm
IndexOptions
</VirtualHost>
<VirtualHost *>
ServerName www.domain2.net
ServerAlias domain2.net *.domain2.net
DocumentRoot /home/damon/public_html/domain2
DirectoryIndex index.php index.html index.htm
IndexOptions
</VirtualHost>
Problem is that it doesn't matter if I enter in either domain1.com, domain2.net or my dyndns hostname I end up at the site for domain1.com
domain1.com
the DNS for this domain are hosted with dyndns and the A records point to my IP (which once again is automatically updated)
domain2.net
the DNS for this one are at afraid.org, im then using a CNAME record to forward it onto my dyndns hostname. so because of the way this one is setup, I would kinda expect domain2.net and the dyndns hostname to end up in the same spot.. but I would have thought it would have at least gone to the virtual host for domain2.net
All i'd like to achieve is different websites hosted on the same server, and the different domains linked to their respective websites.
Can anyone help me with this?
I'm guessing it may have something to do with the Dyndns service?
Oh - just an addition - if I use the servers LAN IP address to access the webserver, it connects me to the default servers page..