【发布时间】:2009-06-15 14:18:27
【问题描述】:
我正在尝试让 Redmine(一个 Ruby on Rails 应用程序)工作。从 ruby script/server webrick -e production 开始时它工作正常,但是,我无法让它在 Apache 中与 Passenger 一起工作。
访问http://example.com/redmine 会返回Redmine 主页,但单击任何链接(甚至在URL 中添加/)都会导致404。根据Rails 日志,会出现RoutingError。例如打开项目页面时:ActionController::RoutingError (No route matches "/projects.html" with {:method=>:get})
Redmine 目录是/var/www/localhost/htapps/redmine。我遵循了http://www.modrails.org/documentation/Users%20guide.html#_deploying_a_ruby_on_rails_application 的文档(第 3.2 节),所以/var/www/localhost/htdocs/redmine 有一个指向../htapps/redmine/public 的符号链接,Apache 配置包含DocumentRoot /var/www/localhost/htdocs 和RailsBaseURI /redmine。
是什么导致它引发这些 RoutingErrors?
【问题讨论】:
-
你检查你的乘客配置了吗?
-
您能详细说明一下吗?我按照modrails.org/documentation/… 的说明进行操作,特别是第 3.2 节。它没有提到任何乘客配置。
标签: ruby-on-rails apache