乘客Rails url前缀导致没有路由匹配

时间:2015-08-07 21:23:53

标签: ruby-on-rails apache passenger httpd.conf

我有一个Rails应用程序,它位于名为convergeops的文件夹中。我的Phusion Passenger设置为PassengerBaseURI/convergeops

80%的情况下,一切正常,但偶尔会出现No route matches错误,如下所示:

enter image description here

httpd.conf文件

DocumentRoot "/var/www/html/convergeops/public"

<Directory "/var/www/html/convergeops">
  RailsEnv production
  PassengerBaseURI /convergeops
  PassengerAppRoot /var/www/html/convergeops
  SetEnv RAILS_RELATIVE_URL_ROOT /convergeops
  PassengerFriendlyErrorPages on
  AllowOverride all
  Allow from all
  Options -MultiViews
  Require all granted
</Directory>

知道为什么我会收到此路由错误吗?

0 个答案:

没有答案