dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Creating Virtual Directory in Apache 2 (Xampp Install) Windows

  1. #1
    Join Date
    Jun 2008
    Posts
    6

    Creating Virtual Directory in Apache 2 (Xampp Install) Windows

    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?

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Do you want a simple alias (S:\Webs => /webs) or a virtual host?

  3. #3
    Join Date
    Jun 2008
    Posts
    6
    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

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Then it sounds like what you want are virtual hosts.

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

  5. #5
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    This link may help. Or maybe this one. Also, Google has several more.

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles