httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] Error in accessing the home page
Date Fri, 30 Nov 2012 00:02:00 GMT
On Thu, Nov 29, 2012 at 6:57 PM, Alex Chen <alex_chen@filemaker.com> wrote:

> However I have already set ServerRoot to "C:/Program Files/Apache" and
> DocumentRoot to 'htdocs", therefore  I assume it implies the document root
> will be "C:/Program Files/Apache/htdocs", as indicated in your reply,
> correct?
>
> The question is why  I have to use <Directory "C:/Program
> Files/Apache/htdocs"> instead of <Directory "htdocs"> even though
> DocumentRoot is already set to "htdocs"?


Because the documentation says that the <Directory > block always requires
the full path:
http://httpd.apache.org/docs/2.2/mod/core.html#directory

That was a design decision that was probably made years ago.

Mime
View raw message