Forum: Ruby on Rails dispatch.fcgi is presented instead of the action

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shuaib Z. (Guest)
on 2009-06-05 20:43
(Received via mailing list)
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
Matt Kellogg (Guest)
on 2009-06-06 03:13
(Received via mailing list)
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
Shuaib Z. (Guest)
on 2009-06-12 15:06
(Received via mailing list)
Thanks for the reply. I have the same configurations
Ryan B. (Guest)
on 2009-06-12 16:30
(Received via mailing list)
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.
Shuaib Z. (Guest)
on 2009-06-13 09:51
(Received via mailing list)
Thanks for the recommendation. Unfortunately, my client wanted to host
by himself and he chose this server which has no good support for
rails.
This topic is locked and can not be replied to.