Forbidden

This is a discussion on Forbidden within the Apache Web Server forums, part of the Web Server and Related Forums category; I must be missing something.... I'm Running Apache on a win system, just installed. http://server and get "...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-17-2003
Zippy
 
Posts: n/a
Default Forbidden

I must be missing something....

I'm Running Apache on a win system, just installed.

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.

Config file contains:


DocumentRoot "C:/My Documents"

Directory "C:/My Documents/My Website"

DirectoryIndex index.htm


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

help!


  #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


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

Claudio Carobolante wrote:

> Option Indexes

Options Indexes

This is only need, if there is no index file and you want a listing of the
folder.

cc.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0