Click to See Complete Forum and Search --> : Creating Virtual Directory in Apache 2 (Xampp Install) Windows


Bengal313
06-26-2008, 02:29 PM
I just installed Xampp on my XP machine.

http://www.apachefriends.org/en/xampp.html

Currently the default location for the pages are at:

C:\xampp\htdocs

I have a external Hard drive that I work off, that contains my sites at:

S:\Webs

How can I configure Apache 2 to add S:\Webs as an additional virtual location?

ray326
06-28-2008, 12:37 PM
Do you want a simple alias (S:\Webs => /webs) or a virtual host?

Bengal313
06-28-2008, 10:31 PM
What I want is, I have an external drive (S:\webs) that I work off, at work and home. Both of my home/work pc have xampp installed. So, the files resides outside of C:\xampp\htdocs. But there are additional site that are located there as well. So I need something like,

site1.local to point to s:\webs\site1
site2.local to point to C:\xampp\htdocs\site2

ray326
06-30-2008, 10:47 PM
Then it sounds like what you want are virtual hosts.

http://httpd.apache.org/docs/2.0/vhosts/

LeeU
07-01-2008, 03:25 PM
This link (http://drupal.org/node/161975) may help. Or maybe this one (http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/). Also, Google (http://www.google.com/search?q=xampp+%22windows+xp%22+%22virtual+hosts) has several more.

It's not that hard. I use it on Linux but Windows is a bit different.