I have a red hat system that I currently have to websites hosted on. I’m trying to set up a third domainname but every time I touch the files (httpd.conf, hosts, ddclient.conf, VirtualHosts,etc) it resolves to the primary domain name. The third domain keeps pulling up my first domain instead of resolving to it’s domain name. Any Ideas? I go through DynDns with custom domains. The first two have been working for years, but whenever I try to set up the third one exactly like the other two using the thirds info, it will not resolve to that third domain?????

You either need to used fixed addresses (not really an option using dynamic DNS) or to set up virtual hosting in Apache. Below are the first three domains on one of my servers running as virtual domains on the same IP address. The lines starting with # are comments and I use them to remind me of what is needed. The singel NameVirtualHost *:80 tells the server to use the next entry as the default for the IP address or unspecified domain.

NameVirtualHost *:80

#<VirtualHost *:80>
#    	ServerAdmin webmaster@chartwriter.com
#    	DocumentRoot /var/www/html/default
#    	ServerName chartwriter.com
#    	ErrorLog logs/chartwriter.com-error_log
#    	CustomLog logs/chartwriter.com-access_log common
#</VirtualHost>

<VirtualHost *:80>
    	ServerAdmin webmaster@chartwriter.com
    	DocumentRoot /var/www/html/chartwriter.com
    	ServerName chartwriter.com
    	ServerAlias www.chartwriter.com
    	ErrorLog logs/chartwriter.com-error_log
    	CustomLog logs/chartwriter.com-access_log common
</VirtualHost>

<VirtualHost *:80>
    	ServerAdmin webmaster@txlinux.com
    	DocumentRoot /var/www/html/txlinux.com
    	ServerName txlinux.com
    	ServerAlias www.txlinux.com
    	ErrorLog logs/txlinux.com-error_log
    	CustomLog logs/txlinux.com-access_log common
</VirtualHost>

<VirtualHost *:80>
    	ServerAdmin webmaster@fortworthjazz.com
    	DocumentRoot /var/www/html/fortworthjazz.com
    	ServerName fortworthjazz.com
    	ServerAlias www.fortworthjazz.com
    	ServerAlias www.dfwjazzfestival.com
    	ServerAlias dfwjazzfestival.com
    	ErrorLog logs/fortworthjazz.com-error_log
    	CustomLog logs/fortworthjazz.com-access_log common
</VirtualHost>