Apache

403 Forbidden

Simple Hosting 在下述情況下可能會發生 403 錯誤:

  • 沒有找到對應的首頁檔,在 Apache 日誌檔中會出現如下錯誤訊息:

[Mon Nov 25 09:33:29.272185 2013] [autoindex:error] [pid 2502:tid 2981512099584] [client 2001:4b98:x:x:x] AH01276: Cannot serve directory /srv/data/web/vhosts/domain.example.com/htdocs/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive

Apache 預設會使用根目錄中名為 index.html 或是 index.php 的檔案作為首頁。如果您遇到這個錯誤,您需要將首頁檔重新命名為 index.html 或是 index.php。如果您不想要重新命名您的檔案,您可以修改根目錄中的 .htaccess 內的 DirectoryIndex 設定。

伺服器讀取後端伺服發生錯誤

[Mon Aug 19 15:01:55.242179 2013] [:error] [pid 412:tid 2997121103616] (104)Connection reset by peer: [client 2001:4b98:x:x:x] FastCGI: failed to read from backend server

這個錯誤訊息表示 Apache 伺服器未能從您的應用程式 (PHP、node.js、Python) 中取得回應,因此無法傳送請求的頁面。當發生此錯誤時,請您分析日誌檔中的錯誤來為您的應用程式除錯。若要知道日檔的位置,您可以依照相關日期與時間來找尋日誌檔的紀錄。

錯誤訊息:SIGUSR1 received. Doing graceful restart

[Mon Sep 21 23:44:09.650215 2015] [mpm_event:notice]
[pid 188:tid 2945215190848] AH00493: SIGUSR1 received.  Doing graceful restart

此訊息是一般正常通知,與日誌檔的週期性備份有關。對您伺服器和網站的運作不會造成影響。