Project

General

Profile

Can't run Sub-URI Redmine 2.0.1 + Centos 6.3 - ActionController::RoutingError

Added by Den Iskandarov about 12 years ago

I have tried everything described here HowTo Install Redmine in a sub-URI and different hints from different forum threads
Getting this error:

Started GET "/redmine/" for 192.168.0.11 at Tue Sep 18 11:22:02 +0400 2012

ActionController::RoutingError (No route matches [GET] "/redmine"):
  actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.8) lib/rails/engine.rb:479:in `call'
  railties (3.2.8) lib/rails/application.rb:223:in `call'
  railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `send'
  railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `method_missing'
  public/dispatch.fcgi:16:in `call'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:66:in `serve'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:28:in `run'
  fcgi (0.8.8) lib/fcgi.rb:117:in `session'
  fcgi (0.8.8) lib/fcgi.rb:104:in `each_request'
  fcgi (0.8.8) lib/fcgi.rb:36:in `each'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:27:in `run'
  public/dispatch.fcgi:20

Environment.rb lines ("works" only first one. second one gives error in error_log with dispatch.fcgi)
#Redmine::Utils::relative_url_root = "/redmine" 
#config.action_controller.relative_url_root = "/redmine" 

httpd redmine.conf
Alias /redmine /var/www/redmine/public

<Directory /var/www/redmine/public/>
    AllowOverride all
    Order deny,allow
    Deny from all
    Allow from 192.168
</Directory>

public/.htaccess
<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script .fcgi
</IfModule>
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteBase /redmine
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
<IfModule mod_fastcgi.c>
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" 

even tried .htaccess for passenger
PassengerAppRoot /var/www/redmine/public
RailsBaseURI /redmine
#RailsEnv production
Options +Indexes +FollowSymLinks +ExecCGI -MultiViews

My previous thread http://www.redmine.org/boards/2/topics/33327
RAILS_ENV=production script/about
Environment:
  Redmine version                          2.1.0.stable
  Ruby version                             1.8.7 (i386-linux)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  no plugin installed


    (1-1/1)