Skip to content

Instantly share code, notes, and snippets.

@pparidans
Created March 31, 2011 08:33
Show Gist options
  • Save pparidans/896036 to your computer and use it in GitHub Desktop.
Save pparidans/896036 to your computer and use it in GitHub Desktop.
Deploying to a sub URI using Passenger and Rails 3

Symbolic link to the 'public' directory

ln -s /webapps/mycook/public /websites/phusion/rails

Into the apache config

RackBaseURI /rails                   # <-- These lines have
<Directory /websites/phusion/rails>   # <-- been added.
    Options -MultiViews               # <--
</Directory>                          # <--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment