server host name and server ip address redirect (Debian, Apache)
- by Matthias Reisner
I have the following folder structure on my apache!
.../var/www/www.x.tt/htdocs
.../var/www/www.y.tt/htdocs
I have defined a virtual host for each.
So if I type in www.x.tt in my browser I get to the www.x.tt site. And the same for www.y.tt.
But now my question!
If I type in the server address or the server host name I get to the ../var/www directory but I want that the user will be redirected to the www.x.tt site!
Do I have to create a new virtual host for this problem or is it also possible only to add a .htaccess Rule?!
Thanks!