Virtual Host

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Virtual Host

Postby savo » 26. July 2006 15:22

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
savo
 
Posts: 5
Joined: 26. July 2006 10:34

Postby Wiedmann » 26. July 2006 16:55

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 40 guests