RoR app works with Webrick, fails with Apache 2.0


#1

Hi all

I am trying to get my RoR application to work with Apache ver 2.0.52
on a Red Hat Linux server. All the scripts /links do work on Webrick,
but I am unable to get them through Apache. I am able to get static
index.html from public dir, but anything else gives me an errors:

  1. http://myhost/my_app/dispatch.cgi
    Routing Error
    Recognition failed for “/dispatch.cgi”

  2. http://myhost/my_app/images
    403 -> You don’t have permission to access /my_app/images/ on this
    server.

  3. http://myhost/my_app/login
    404 -> file not found
    /var/log/httpd/error_log
    [client 123.45.67.890] File does not exist:
    /home/my_home/rails/my_app/public/login

Here are my conf files:
-----httpd.conf-----
Alias /my_app “/home/my_home/rails/my_app/public/”
Alias /my_app/ “/home/my_home/rails/my_app/public/”
<Directory /home/my_home/rails>
#also used with zero success: <Directory /home/my_home/rails/my_app>
Options ExecCGI
AddHandler cgi-script .cgi .rb
Options +FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all