Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed passenger as ruby gem. I've added following to /etc/apache2/apache2.conf

LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.4/ext/apache2/
PassengerRuby /usr/bin/ruby
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.4

and set Vitual Host to rails app ~/public directory, but when I visit the site, I only see content of dispatch.fcgi, but nothing gets executed

.htaccess in ~/public directory is

AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

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

However, if I run script/server, everything works fine, so there is no problem with the application itself.

share|improve this question
up vote 2 down vote accepted

Passenger doesn't execute Rails requests via dispatch.fcgi. Have you tried following the Passenger installation instructions?

share|improve this answer
yep, I even ran through two timeson different machines, once with gem and once with ubuntu package, but neither did help – Jakub Arnold Aug 29 '09 at 7:24
Nothing in that documentation mentions dispatch.fcgi. – womble Aug 29 '09 at 11:14
dispatch is generated when you do rails xx -D, thats because I migrated project from other other server, where it was necessary, anyway, problem solved by rebooting whole server (apache reboot didn't suffice) – Jakub Arnold Aug 30 '09 at 12:08
Rails generates a lot of things, but that doesn't mean you have to use them. – womble Aug 30 '09 at 22:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.