Page 1 of 1

Virtual Host

PostPosted: 26. July 2006 15:22
by savo
I dont seem to be able to get this to work corectly.

i have set up my config file like this

<VirtualHost 127.0.0.1>
ServerName www.testing.com
ServerAlias testing.com
DocumentRoot C:/server/xampp/htdocs/meshtrak/main
</VirtualHost>

and my host filt like this

127.0.0.1 localhost
127.0.0.1 www.testing.com

but i all ways end up in the same location which is the C:/server/xampp/htdocs/meshtrak/main

Is there anything i am missing all the tuts i have looked at say this is all that need to be done.

Thanks

Sav

PostPosted: 26. July 2006 16:55
by Wiedmann
but i all ways end up in the same location which is the C:/server/xampp/htdocs/meshtrak/main

Right. I see one VHost in your post with this directory as DocumentRoot. So, if you access your localhost or an other dns name with the ip 127.0.0.1, you will get the files from this directory.
--> all is correct and work like your configuration told us.