I'm setting up a virtual host on a linux machine.
I've already made necessary DNS changes and they have propagated and are working correctly.
There are many other virtual hosts setup in my /etc/httpd/conf/httpd.conf file that are working correctly (someone else set all these up). My config for the new virtual host is this (where the real IP has been replaced with ##.###.###.###):
<VirtualHost ##.###.###.###:80>
ServerName www.website.com
ServerAlias website.com
DocumentRoot /var/www/html/website.com
ErrorLog logs/website.com-error_log
CustomLog logs/website.com-access_log combined
</VirtualHost>
<Directory /var/www/html/website.com>
Order deny,allow
Allow from all
AllowOverride All
</Directory>
All the files for the site are sitting in /var/www/html/website.com. When I visit website.com, the main site on this server is displayed rather than website.com.
What are some other configuration settings (anywhere) that could be doing this? There are other virtual hosts set up in an identical manner (from what I can tell) and they are working correctly.
Do you have such lines for you ip?
or
http://httpd.apache.org/docs/2.0/vhosts/examples.html