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