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的鎖機制。
新聞熱點
疑難解答