Forum: Ruby on Rails RoR app works with Webrick, fails with Apache 2.0

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.
y.igarashi (Guest)
on 2005-11-12 12:49
(Received via mailing list)
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
</Directory>
This topic is locked and can not be replied to.