web服務(wù)器訪問緩慢,查error.log顯示大量錯(cuò)誤:
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/%[email protected]%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肯定不是我們想要的,開發(fā)上傳一個(gè)新的index.html后發(fā)現(xiàn)新的報(bào)錯(cuò):
[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
因遠(yuǎn)程用戶非httpd的用戶,權(quán)限問題。
重新上傳更新后解決。
最初找到原因index.html文件被損壞,開發(fā)在生產(chǎn)環(huán)境上打包tar文件導(dǎo)致index.html(起碼發(fā)現(xiàn)了這個(gè)文件)被損壞,拷貝了一個(gè)好的index.html后,其他文件也發(fā)現(xiàn)損壞致使用戶無法訪問。
不知道tar一個(gè)被讀取的文件怎么導(dǎo)致源文件損壞,可以深究一下tar的鎖機(jī)制。
新聞熱點(diǎn)
疑難解答
圖片精選