文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ClientDeniedByServerConfiguration

ClientDeniedByServerConfiguration

时间:2007-07-11  来源:opbsder

Client denied by server configuration

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 deny directive or due to an attempt to access a folder that is outside of the DocumentRoot.

(这个错误的意思是访问硬盘上的目录被apache的配置文件所禁止。可能是由于以下原因造成的:1 该目录被明确设置为禁止访问 2 企图访问一个不在DocumentRoot. 中设置了的文件夹)

These are some reasons for this entry to be recorded in your ErrorLog:

这里有一些这个词条被记录进errorlog的原因:

  • The default Apache config includes Deny from all in the <Directory> block the DocumentRoot - this must be changed to allow access!

  • (默认的apache的配置文件中的<Directory>块中包含Deny from all,这个必须被修改为允许访问 )

  • If you change the DocumentRoot, you will need to change the <Directory> block referring the old root, to the refer to the new root

  • (如果你改变了DocumentRoot,你需要改变<Directory>块中涉及到旧的root,提到旧的DocumentRoot的地方,修改为新的root)

  • You need a <Directory> block for every folder outside of your DocumentRoot, i.e. your cgi-bin folder.

  • (你需要为DocumentRoot以外的目录添加到一个新的<directory>中)

  • You need a <Directory> or <Location> blocnik for every Alias.

  • ()

To fix this problem, look at the line in your ErrorLog, to find out which folder it is trying to access. (为了确定问题的原因,在你的errorlog中查找,哪一个文件夹被试图访问)
If a <Directory> block already exists for that folder, make sure it is set to allow access as necessary.(如果已经存在关于那个文件夹的<directory>设置,确定它被设置为允许访问) 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> Order allow,deny Allow from all </Directory> 

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.

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载