passenger - Rails application without virtual host -
passenger - Rails application without virtual host -
i need host 2 rails app in 1 server , don't have many domain names. followed http://mattconnolly.wordpress.com/2010/09/19/redmine-ruby-on-rails-without-virtual-hosts/ works. root url changes http://{virtual-host}/ http://{main-domain}/railsapp/
my problem when like:
redirect_to root_path
i redirected http://{main-domain}/ instead of http://{main-domain}/railsapp/ expected. can of course
redirect_to '/railsapp'
but there improve way repeat /railsapp on app?
try configure config.relative_url_root
http://edgeguides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root
ruby-on-rails passenger
Comments
Post a Comment