Server Fault is a question and answer site for system and network administrators. 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 am modifying an existing Apache setup on a Windows machine to allow access to multiple directories and have hit a small obstacle due to confusion. I have the main root directory in which the web site is hosted on. The other 2 directories are archives of images and documents that the user can have access, browse through, and download. I've looked through some online documentation and was a bit confused on whether I can just add some directories to the httpd.conf file or if I actually have to create virtual hosts. Any help or a point in the proper direction is greatly appreciated.


share|improve this question
up vote 0 down vote accepted

I'm going to assume you don't currently have any virtual hosts setup in your http.conf file. In that case, you should add the directories to your http.conf file.

If your folders are stored outside of your document root (like on separate disks), then create an alias for the folder:

Simplifed explanation of name-based virtual hosts:
Virtual hosts are a way of having one webserver serve multiple domains. A normal practice is to have the http.conf include directories that will contain additional apache configuration information. To keep future growth as an option, many people will only define virtual hosts in separate files stored in these included directories. In this way, if they want to add a second domain (or a subdomain) in the future, all they do is create another vhost file and save it to the included directory.

share|improve this answer
How would I access the additional directories? If the Document root is in "C/www" and I have a directory with "C/www", "F/Images", and "H/Files" how would I access the F and H directory? The webpage can be accessed easily on the machine through "localhost\index.html". – Seb May 25 '11 at 14:59
Use an alias ( – Chris Ting May 25 '11 at 15:12

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.