##// END OF EJS Templates
Merged r14078 and r14097 from trunk to 2.6-stable...
Merged r14078 and r14097 from trunk to 2.6-stable Building ffi 1.9.7 fails in Ubuntu. git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14099 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9421:049148855488
r13717:f26f5fd10170
Show More
dispatch.fcgi.example
20 lines | 473 B | text/plain | TextLexer
/ public / dispatch.fcgi.example
Jean-Philippe Lang
Changes ruby bang path to #!/usr/bin/env ruby (#1876)....
r2015 #!/usr/bin/env ruby
Jean-Philippe Lang
Initial commit...
r2
Jean-Philippe Lang
Updates dispatch.fcgi.example to work with Rails3 and removes CGI handlers....
r9421 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)