Dispatch.fcgi is presented instead of the action


#1

Hi there
I am trying to setup my first application on the server and i keep
getting the content of dispatch.fcgi

after i googled it, i found that i have to have .htaccess which i had
in the public folder.

you can check it here
http://www.bluestar.ps/tests

any idea what is this problem and what is the solution


#2

What are the contents of your .htaccess?

It should probably look something like this:

RewriteEngine On
RewriteBase /
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

Matt


#3

Thanks for the reply. I have the same configurations


#4

I really recommend that you look into something like passenger:
http://modrails.com for running your Rails applications, rather than
mod_fcgi or the like.


#5

Thanks for the recommendation. Unfortunately, my client wanted to host
by himself and he chose this server which has no good support for
rails.