
我經常收到以下錯誤訊息。如果我再次點擊刷新(F5),我就可以毫無問題地訪問網站。
Forbidden
You don't have permission to access /admin/product_scientist/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache Server at www.mywebsite.com Port 80
我在訪問或錯誤日誌中找不到任何錯誤訊息。不僅提到了頁面,大部分頁面甚至html都出現錯誤。請幫我解決這個問題。
答案1
對於 Debian,你可以以 root 身分執行以下操作:
# grep -ir "mod_evasive" /etc/apache2/
或者對於 CentOS 你可以這樣做:
# grep -ir "mod_evasive" /etc/httpd/
或所有發行版上最慢但 100% 有效的 grep 是:
# grep -ir "mod_evasive" /
讓我們看看它返回什麼。