Apache is spitting out a HTTP response of code: 400 "Bad Request" with no details whenever I access a page driven that is handled by a FastCGI script.
- I've installed the mod_fcgid module and it's loaded and configured in the Apache config files
- I've tested several FastCGI scripts, all of them run when directly executed.
- Static resources are served appropriately.
- Apache is trying to launch the script because it complains when I rewrite the URL to a non-existant script
Anyone have any idea what's wrong with my Apache Config?
<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>
EDIT -- I've checked the mod_rewrite logs and URI's are being rewritten correctly