Apache是隨地吐痰的代碼HTTP響應:400「錯誤的請求」,沒有細節,每當我訪問驅動被處理的頁面通過FastCGI的腳本。阿帕奇給一個400錯誤在FastCGI的虛擬主機
- 我已經安裝了mod_fcgid模塊和它的加載和配置Apache的配置文件
- 我已經測試了FastCGI的腳本,它們都直接執行時運行。
- 靜態資源的服務適當。
- Apache正在努力,因爲當我重寫URL到一個不存在的腳本
任何人有任何的想法有什麼錯我的Apache配置抱怨,啓動腳本?
<VirtualHost ip.ad.re.ss:80>
ServerName demo.domain.com:80
DocumentRoot /var/www/vhosts/domain.com/subdomains/demo/rails/public
CustomLog /var/www/vhosts/domain.com/statistics/logs/demo_access_log combined
ErrorLog /var/www/vhosts/domain.com/statistics/logs/demo_error_log
LogLevel info
Options +FollowSymLinks +ExecCGI -SymLinksIfOwnerMatch
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</VirtualHost>
編輯 - 我已經檢查了mod_rewrite日誌和URI的被改寫正確
我從來沒有找到解決方案,而是最終使用單個雜種實例來完成這項工作。 – 2010-06-05 22:54:18