Skip to content

Instantly share code, notes, and snippets.

@aaronaddleman
Created January 8, 2015 17:53
Show Gist options
  • Save aaronaddleman/ecfc08de8cee4d7c9623 to your computer and use it in GitHub Desktop.
Save aaronaddleman/ecfc08de8cee4d7c9623 to your computer and use it in GitHub Desktop.
To host your rails app with either a virtual host or Alias method with RailsBaseURI /path/to/app/dir (Alias with Virtual host method)
# in shell
cd /somewhere/already
ln -s /rails_app/public /new_app
# in apache.conf
<VirtualHost *:80>
ServerName www.yourhost.com
DocumentRoot /somewhere/already
RailsBaseURI /new_app
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment