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 "...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
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 |