Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows 7 laptop with an installation of the Apache HTTP server (just for development purposes, not accessible from outside).

My problem is that I have my web applications located in two different directories on two different HD partitions.

How do I configure Apache to be able to launch applications from both locations?

I tried configuring one of them as the document root and pointing to the other one with a hard-link (but hard-links cannot point to folders) or sym-link (but Apache does not seem to understand Windows sym-links).

share|improve this question
up vote 0 down vote accepted

Are they two separate applications? If so, you can create two named virtual hosts, one will point to the firts app, the other to the second. Then you just need to edit your "hosts" file to create the two names.

See any tutorial on vhosts, e.g. http://apptools.com/phptools/virtualhost.php

share|improve this answer
This seems to solve my problem (even though it is not exactly what I was looking for - e.g. to have applications from both locations under the localhost domain). Thanks! – Dušan Rychnovský Jan 11 '12 at 13:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.