How do I add Virtual Hosts on XAMPP? Please help.?
Question by Billy Rowe: How do I add Virtual Hosts on XAMPP? Please help.?
I’m trying to add Virtual Hosts on my Webserver for my family.
It is running XAMPP.
How do I add a Virtual Host?
I read all the forum threads on Google, I read the Apache and XAMPP documentation. But, it doesn’t seem to help.
I try everything they say.
I use their examples and try to change every line, but it still does not work.
Anyone have any good sites that helped them?
Or does anyone have a tutorial on this?
Thanks so much
Best answer:
Answer by Tracy L
Well, this tutorial looks pretty good for this.
http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/
Apache is well, apache and basically you add a directory for each “domain” then add a line into the apache.conf or http.conf or httpd-vhosts.conf (depends on version of xampp) file to point to each directory.
you would add something like the following,,
NameVirtualHost *:80
DocumentRoot “drive:/apachefriends/xampp/htdocs”
ServerName localhost
and right after that
DocumentRoot “drive:/apachefriends/xampp/htdocs/sitename”
ServerName sitename.localhost
(that is for xamp version 1.4) yours may well be different, need the version to be specific here!
Once done, you simply restart the httpd service and you should be good to go.
I don’t use this system but do use apache and apache well is apache it really doesn’t care it works the same, Xampp just makes it easy to install etc.
So you can also consult the APACHE doc files.
Have fun, hope that helps
Add your own answer in the comments!
Incoming search terms:
- add virtual host to xamp
- adding virtual host in xamp
Recent Comments