Tech Journal Back to Tech Journal

After installing Ruby on Rails, I keep getting 404 messages for every URL on my server!

After installing Ruby on Rails, I am getting "404 not found ... dispatch.fcgi" on everything in my webserver!

You probably had meant to add a Ruby on Rails virtual host, instead of converting your entire server to Ruby on Rails.

I'd recommend creating a new virtual host, but that's beside the point. What's causing the 404 messages was the line you added:

RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]

Which you added either in httpd.conf or in .htaccess for your site/server.

Remove that line, and place it to only take effect upon the virtual host you want to run rails on.

Last updated on 2007-08-20 00:02:34 -0700, by Shalom Craimer

Back to Tech Journal