Vitual Host

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

Vitual Host

Postby productive1 » 17. May 2005 23:43

Is it possible to to have 2 different websites with with XAMPP I have read about Virtual Host in this forum, but is that for to different domain names for the same ip and if yes how do I start the proccese I know is under http.conf file but what I dont knw is what information that I have to put there because I tried putting :
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot G:\apachefriends\xampp\htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName www.mysite.com
ServerAlias mysite.com *.mysite.com
DocumentRoot G:\apachefriends\xampp\htdocs\site2
</VirtualHost>

but it still tooked me to http://localhost

I have registered my name, and since I got a Dynamic IP, I have http://thatip.com service to re-route to my IP in my computer. Im running winXP.

How do I prevent www.mysite.com from going to localhost?

Thank You.

:)
productive1
 
Posts: 12
Joined: 16. May 2005 08:07
Location: US, NY

Postby productive1 » 18. May 2005 20:02

The problem is fixed see this if you are having problems :



http://community.apachefriends.org/f/viewtopic.php?t=11811
productive1
 
Posts: 12
Joined: 16. May 2005 08:07
Location: US, NY


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 187 guests