Forum: Ruby on Rails Problem with apache and rubyonrails

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.
D126c963acd4b35d8eb2b1a85ec267d4?d=identicon&s=25 Fahq (Guest)
on 2005-12-29 20: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:
/usr/home/mhale/hieraki-1.0.2/public/frontpage/index
 File does not exist:
/usr/home/mhale/hieraki-1.0.2/public/frontpage/index
 File does not exist:
/usr/home/mhale/hieraki-1.0.2/public/frontpage/index

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

Please Help.

Fahq
Cb610750ee94ca103aef4b2dc7b1b768?d=identicon&s=25 Nick Stuart (Guest)
on 2005-12-29 20: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.

-Nick
D126c963acd4b35d8eb2b1a85ec267d4?d=identicon&s=25 Fahq Fahq (fahq)
on 2005-12-29 22:17
Nick

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.