Slight corrections
One thing I failed to mention in my previous post has to do with your Rails configuration. Since each Rails application expects to be in the root URL path by default, you have to correct this by adding this line to either
This forces all URLs created by helper methods and redirects to map into this subdirectory. Also, you probably need to make certain that your URL base for the application is named the same in Apache, lighttpd, and Rails. This will ensure no broken links.
environment.rb
or environments/production.rb
(where I put mine).ActionController::AbstractRequest.relative_url_root = "/myapp"
This forces all URLs created by helper methods and redirects to map into this subdirectory. Also, you probably need to make certain that your URL base for the application is named the same in Apache, lighttpd, and Rails. This will ensure no broken links.