Redmine error - No route matches [GET] "/redmine"

Hi,

After solving my FCGI problems on my managed server I’m getting another error now from my redmine installation:

No route matches [GET] “/redmine”
Rails.root: /usr/www/users/admin/redmine-4.0.4

Application Trace | Framework Trace | Full Trace
Routes
Routes match in priority from top to bottom

and a lot of routes.

redmine works from the internal server (rails s) so it seems to be a problem with apache or rails.

This is my FCGI configuration:

.htaccess is:

FcgidWrapper /usr/www/users/admin/redmine/ruby_handler.fcgi .rb
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ ruby_handler.fcgi [QSA,L]

ruby_handler.fcgi is:

#!/bin/dash
#export GEM_HOME="$HOME/.gem/ruby/2.3.0/"
#export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/2.3.0"

export HOME="/usr/home/admin"
export GEM_HOME="$HOME/.gem/ruby/"
export GEM_PATH="/usr/home/admin/.gem/ruby/2.3.0/"

exec /usr/bin/ruby /usr/www/users/admin/redmine/startup.rb

startup.rb is:

require_relative ‘config/environment’

class Rack::PathInfoRewriter
def initialize(app)
@app = app
end

def call(env)
env.delete(‘SCRIPT_NAME’)
parts = env[‘REQUEST_URI’].split(’?’)
env[‘PATH_INFO’] = parts[0]
env[‘QUERY_STRING’] = parts[1].to_s
env[‘HOME’] = “/usr/home/admin/”
@app.call(env)
end
end

Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(RedmineApp::Application)

Any tipps how to fix this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs