Apache virtual hosts - server ip directing to virtual host instead of /var/www/html

view story

http://stackoverflow.com – I have set up a linux box mainly for testing and I have got to a stage were apache, mysql and php are running. I followed tutorials on how to set up virtual hosts so I can point domains to it but something strange is happening. This is my httpd-vhosts.conf file that I have included in my httpd.conf file: NameVirtualHost *:80 <VirtualHost *:80> ServerName thedomain.co.uk DocumentRoot /var/www/thedomain </VirtualHost> When I go to thedomain.co.uk it is pointing to the correct place as you'd expect. But when I go to my servers ip, internal or external it is going to the sa (HowTos)