Thread: Forbidden
View Single Post

  #2 (permalink)  
Old 08-18-2003
Claudio Carobolante
 
Posts: n/a
Default Re: Forbidden

Zippy wrote:

Please use a realname.

[...]
> http://server and get "Forbidden, you do not have permission to access
> / on this system".
>
> run http://server/index.htm works fine.
>
> It looks to me like Apache is seeing an access to / (root) and
> disallowing
> it before seeing / as a directory and adding index.htm. I've played
> some with DocumentRoot, Directory, and DirectoryIndex to no avail.


Try and error aren't the right way to configure a server.

> Config file contains:
>
> DocumentRoot "C:/My Documents"
>
> Directory "C:/My Documents/My Website"


This isn't a right Directory-directive.

> DirectoryIndex index.htm
>
> Setting DocumentRoot and Directory to "C:/My Documents/My Website"
> changes nothing.
> Still get the Forbidden error.


In which context do you use the DirectoryIndex directive? Maybe inside
another Directory-directive?

DocumentRoot "C:/My Documents/My Website"
<Directory "C:/My Documents/My Website">
Allow from all
DirectoryIndex index.htm
Option Indexes
</Directory>

If this didn't work, post the last lines (better: the significant lines)
from the ErrorLog-file.

cc