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 assume it has something to do with permissions. How would I set the folder to the appropriate permissions on windows? It worked fine when I left it at the default subdirectory of htdocs.


share|improve this question

It may be a problem with Windows permissions which you have probably already checked. Another thing to consider is the Directory permissions in httpd.conf as that is where Apache checks to see what it is allowed to do with the files. I made that mistake my first time changing the DirectoryRoot also.

Here is an example. If the old directory was /srv/http, then you might have something like:

<Directory "/srv/http">
  Options Index FollowSymlinks
  AllowOverride none
  Order allow,deny
  Allow from all

Simply change the "/srv/http" part to you new directory, or make a new entry which includes your new DocumentRoot The important bit is the "Allow from all" since you should have a <Directory /> entry that includes "Deny from all" to disallow access to the rest of your system.

share|improve this answer

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.