Forum: Ruby on Rails Problem with apache and rubyonrails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fahq (Guest)
on 2005-12-29 21:28

I am setting up my httpd.conf file so I can secure a site create in
RubyonRails.  The problem that I am having is:
 File does not exist:
 File does not exist:
 File does not exist:

So apache is reading "frontpage/index" as a file path and not as an

Please Help.

Nick S. (Guest)
on 2005-12-29 21:42
(Received via mailing list)
Did you change the .htaccess file so that is uses .fcgi instead of
.cgi? Dont know if this would cause that error or not, but it might.

And did you also uncomment mod_rewrite in the conf file. This looks
like it might be more the case.

Fahq F. (Guest)
on 2005-12-29 23:17

Thanks for the reply.  I will show you my .htaccess file, thanks for the
reminder I did have mod_rewrite uncomm.

# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

# Example:
#   RewriteCond %{REQUEST_URI} ^/notrails.*
#   RewriteRule .* - [L]

# Example:
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
This topic is locked and can not be replied to.