首页 | 源码下载 | 网站模板 | 网页特效 | 广告代码 | 网页素材 | 字体下载 | 书库 | 站长工具
会员投稿 投稿指南 RSS订阅
当前位置:主页>网络编程>Apache教程>资讯:Apache错误:Directory index forbidden by op

Apache错误:Directory index forbidden by op

www.jz123.cn  2010-09-28   来源:   中国建站    责任编辑(袁袁)    我要投递新闻

  web服务器访问缓慢,查error.log显示大量错误:

  Directory index forbidden by option directive:/usr/local/apache/htdocs

  查到比较好的答案:

  Just to note, the cause of these messages probably come from the mpm_common module, it's an internal dummy connection:

  http://mail-archives.apache.org/mod_mbox/httpd-users/200604.mbox/%3c4434308F.9030003@googlemail.com%3e

  the simple solution is to create an empty index.html file in the directory as mentioned above. I don't advise turning on Indexes, although that is another solution.

  开放目录index肯定不是我们想要的,开发上传一个新的index.html后发现新的报错:

  [Wed Apr 28 11:50:14 2010] [error] [client 122.226.222.58] (13)Permission denied

  : access to /images/msgbox_alert.png denied, referer: http://www.abc.com/War

  .swf/[[DYNAMIC]]/3

  因远程用户非httpd的用户,权限问题。

  重新上传更新后解决。

  最初找到原因index.html文件被损坏,开发在生产环境上打包tar文件导致index.html(起码发现了这个文件)被损坏,拷贝了一个好的index.html后,其他文件也发现损坏致使用户无法访问。

  不知道tar一个被读取的文件怎么导致源文件损坏,可以深究一下tar的锁机制。


上一篇:有关apache的pid退出错误问题 下一篇:apache 403错误 处理方法

评论总数:0 [ 查看全部 ] 网友评论


关于我们隐私版权广告服务友情链接联系我们网站地图