My server works fine for
http://www.mydomain.com. However, visiting
http://domain.com somehow returns the apache2 default document root instead of /home/mydomain as I would like it to.
Here is the apache conf file in sites-available. Can anyone tell me what the problem might be?
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
#We want to be able to access the web site using www.dev.example.com or dev.example.com
ServerName www.mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot /home/mydomain/public
#if using awstats
#ScriptAlias /awstats/ /usr/lib/cgi-bin/
#we want specific log files for this domain
# an error log
ErrorLog /home/mydomain/logs/mydomain.com-error.log
# an access log
CustomLog /home/mydomain/logs/mydomain.com-access.log combined
</VirtualHost>