Apache Configuration Issue - website without www going to default site
Posted
by Brian
on Server Fault
See other posts from Server Fault
or by Brian
Published on 2010-05-22T15:28:30Z
Indexed on
2010/05/22
15:32 UTC
Read the original article
Hit count: 284
I have included a copy of my virtual host file for apache below. (However I have hidden the ip address and domain name for now)
My problem is that the following work: www.mydomainnamehere.org www.mydomainnamehere.com mydomainnamehere.com
This one doesn't work: mydomainnamehere.org - instead of going to the document root listed below, it goes to the document root of the default site.
What could be causing this?
<VirtualHost [ipaddresshidden]:80>
ServerAdmin [email protected]
ServerName mydomainnamehere.org
ServerAlias www.mydomainnamehere.org
ServerAlias mydomainnamehere.com
ServerAlias www.mydomainnamehere.com
DocumentRoot /home/www/mydomainnamehere.org/html/
ErrorLog /home/www/mydomainnamehere.org/logs/error.log
CustomLog /home/www/mydomainnamehere.org/logs/access.log combined
</VirtualHost>
© Server Fault or respective owner