Sha256: 2dd2fa1a00df96c4b535ebf1029c22db146bbe9f49db34fe22d4efd70177ea9c

Contents?: true

Size: 473 Bytes

Versions: 34

Compression:

Stored size: 473 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../config/boot'
require File.dirname(__FILE__) + '/../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
    @app.call(env)
  end
end

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.38 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.37 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.11 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.10 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.36 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.34 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.09 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.07 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.06 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.05 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.04 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.03 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.33 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.02 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.1.01 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.29 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.28 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.27 spec/redmine/public/dispatch.fcgi.example
redmine_extensions-0.0.24 spec/redmine/public/dispatch.fcgi.example