I Can't Get Ruby on Rails + Passenger + Apache to Work

Posted by Luke Crowe on Server Fault See other posts from Server Fault or by Luke Crowe
Published on 2011-04-12T16:41:23Z Indexed on 2012/04/10 5:33 UTC
Read the original article Hit count: 512

I'm sorry if this is a stupid question, but I can't get Ruby on Rails to work on my Apache server. I'm using Phusion Passenger (mod_rails, mod_rack) for app deployment. Here is my RoR-specific configuration code in my website's Apache configuration file:

Alias /rails /var/www/syyborg.com/ruby/blog/public
<Directory /var/www/syyborg.com/ruby/blog/public>
     Options FollowSymLinks
     AllowOverride None
     Order Allow,Deny
     Allow from All
</Directory>
RailsBaseURI /rails

Again, I really have very little knowledge of this kind of thing; I have never set up a server from scratch before. Anyways, my rails app, as you can see, is located at /var/www/syyborg.com/ruby/blog/. I am trying to access it from http://[my domain, syyborg.com]/rails. However, when I try to load the site, I get a "403 Forbidden" error. Any help would be greatly appreciated, and I can provide further details if they are required. Thanks in advance!

© Server Fault or respective owner

Related posts about ruby-on-rails

Related posts about phusion-passenger