I'm trying to get Redmine (a Ruby on Rails app) working. It works fine when started with ruby script/server webrick -e production
, however, I'm having trouble getting it working in Apache with Passenger.
Accessing http://example.com/redmine returns the Redmine home page, but clicking any link (or even adding a /
to the URL) results in a 404. According to the Rails log, a RoutingError
occurs. For example, when opening the projects page: ActionController::RoutingError (No route matches "/projects.html" with {:method=>:get})
The Redmine directory is /var/www/localhost/htapps/redmine
. I followed the documentation at http://www.modrails.org/documentation/Users%20guide.html#_deploying_a_ruby_on_rails_application (section 3.2), so there's a symlink at /var/www/localhost/htdocs/redmine
pointing to ../htapps/redmine/public
, and the Apache configuration contains DocumentRoot /var/www/localhost/htdocs
and RailsBaseURI /redmine
.
What is causing it to raise these RoutingErrors?