I am using named Virtual hosts
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin ramesh@thegeekstuff.com
DocumentRoot "/usr/local/apache2/docs/thegeekstuff"
ServerName test1.mydomain.com
ServerAlias www.test1.mydomain.com
ErrorLog "logs/thegeekstuff/error_log"
CustomLog "logs/thegeekstuff/access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin ramesh@top5freeware.com
DocumentRoot "/usr/local/apache2/docs/top5freeware"
ServerName test2.mydomain.com
ServerAlias www.test2.mydomain.com
ErrorLog "logs/top5freeware/error_log"
CustomLog "logs/top5freeware/access_log" common
</VirtualHost>
At the moment i have not defined www.mydomain.com
but when i open in browser it goes to my test1.mydomain.com
Is there any way that if i did not explicitly define that it redirect to either APache conf page
Also if i type ip address only then it also goes to that site.
I want that also to go to that undefiend page or something else