Problem with apache and rubyonrails


#1

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


#2

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


#3

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]