Premature end of script headers:....dispatch.cgi


Hi all,
I have a working ruby app that I developed on Window and I am trying to
deploy it on Linox with Apache. The hosting company generated for me an
empty rails app and I just replaced the files that I modified in my app
(only rb/rhtml/css/js files).

In addition I updatd the database.yml but now I am getting either page
not found or
Application error
Rails application failed to start properly"

Nothing in the rails log and only
Premature end of script headers:

in the error log of apache(I guess)

Help is needed.


Hmm, could it be the line endings (linux vs windows line endings)? Make
you are using linux line endings (\n) in whatever editor you use and you
shouldn’t have any problems.