IIS 和 FastCGI/故障排除
外觀
此頁面是關於問題、原因以及解決方案的維基列表。
看到如下螢幕了嗎?
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
* The FastCGI process exited unexpectedly
* Error Number: -2147467259 (0x80004005).
* Error Description: Unspecified error
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
如果您使用的是 Perl 或類似語言,您可能忘記設定 FCGI 包裝器。如果您嘗試使用 FastCGI 替換 CGI,但沒有使用 IIS::FCGI 或 MVC fastcgi 包裝器,就會出現這種情況。請參考本書針對 Perl 的特定文件,位於 指令碼語言/Perl。
另一個常見原因是指令碼配置錯誤,或者指令碼在啟動時崩潰。請確保您的 fcgi 指令碼在 Web 伺服器環境之外執行(在cmdshell 中顯式執行它)。
HTTP request sent, awaiting response... Read error (Connection reset by
peer) in headers
Retrying.
Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again.
如果您嘗試將 stderr 重定向到 Web 伺服器而不是 stdout,則可能會出現這兩個錯誤。 Catalyst::Engine::FastCGI 存在這個 bug。