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