You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/25 17:50:53 UTC

[Httpd Wiki] Update of "Errors/ClientDeniedByServerConfiguration" by VinkoVrsalovic

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by VinkoVrsalovic:
http://wiki.apache.org/httpd/Errors/ClientDeniedByServerConfiguration

The comment on the change is:
Some minor tweaking in hopes of making it more clear

------------------------------------------------------------------------------
  = Client denied by server configuration =
- Access was denied by a deny directive.  This means that the access to the directory on the hard disk was denied by an Apache configuration.  [[BR]] This could be due to an explicit deny directive being set, or more likely an attempt to access a folder that is outside of the DocumentRoot.
+ This error means that the access to the directory on the hard disk was denied by an Apache configuration. It could be that access was denied due to an explicit [http://httpd.apache.org/docs/2.2/en/mod/mod_authz_host.html#deny deny] directive or due to an attempt to access a folder that is outside of the DocumentRoot.
  
- A few possible reasons to cause this entry to be recorded in your !ErrorLog
+ These are some reasons for this entry to be recorded in your !ErrorLog:
  
   * The default Apache config includes {{{Deny from all}}} in the <Directory> block the !DocumentRoot - this must be changed to allow access!
   * If you change the !DocumentRoot, you will need to change the <Directory> block referring the old root, to the refer to the new root
   * You need a <Directory> block for every folder outside of your !DocumentRoot, i.e. your cgi-bin folder.
   * You need a <Directory> or <Location> block for every Alias.
  
- To fix this problem, look at the line in your !ErrorLog, to find out which folder it is trying to access.   [[BR]] If a <Directory> block already exists for that folder, make sure it is set to allow access as necessary. If not, add a <Directory> block to your Apache configuration file, allowing access as required.  See the example below for folder /usr/local/awstats/htdocs
+ To fix this problem, look at the line in your !ErrorLog, to find out which folder it is trying to access.   [[BR]] If a <Directory> block already exists for that folder, make sure it is set to allow access as necessary. If not, add a <Directory> block to your Apache configuration file, allowing access as required.  See the example below for folder /usr/local/awstats/htdocs.
  
  {{{
  <Directory /usr/local/awstats/htdocs>
@@ -18, +18 @@

    Allow from all
  </Directory>
  }}}
- This directory block will allow Apache to serve files from this location, in response to an incoming request
+ This directory block will allow Apache to serve files from this location, in response to an incoming request. This assumes either you have an Alias set up somewhere for serving content from this directory or, less likely, that your !DocumentRoot is /usr/local or /usr/local/awstats.