Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327092
  • 博文数量: 103
  • 博客积分: 3886
  • 博客等级: 中校
  • 技术积分: 1005
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-28 15:00
文章分类

全部博文(103)

文章存档

2011年(30)

2010年(73)

分类: 系统运维

2010-04-28 15:22:57

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:



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:
.swf/[[DYNAMIC]]/3
 
因远程用户非httpd的用户,权限问题。
 
重新上传更新后解决。
 
 
最初找到原因index.html文件被损坏,开发在生产环境上打包tar文件导致index.html(起码发现了这个文件)被损坏,拷贝了一个好的index.html后,其他文件也发现损坏致使用户无法访问。
不知道tar一个被读取的文件怎么导致源文件损坏,可以深究一下tar的锁机制。
阅读(2128) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:tar、cpio、rpm的压缩与解压

给主人留下些什么吧!~~