Apache cgi error

Good day.
First of all sory for my english, it isnt well.

I have my first ruby on rails application.
When i use WEBrick my app works fine.

But when i tried to run it under apache, i have the following message in

Application error
Rails application failed to start properly

The message in apache error log:

malformed header from script. Bad header=58: dispatch.cgi

And the most unintelligible fact is the message in rails development
log. In this log i see that the app gets the request from apache and do
its work, as it runs from WEBrick.

My httpd.conf is

ServerName rails DocumentRoot /path/to/my/application/public/ ErrorLog /var/log/httpd/rails.log

<Directory /path/to/my/application/public/>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all

and all necessary modules has been loaded.

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs