Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 487 Bytes
= Known issues with Rack and Web servers
* Lighttpd sets wrong SCRIPT_NAME and PATH_INFO if you mount your
FastCGI app at "/". This can be fixed by using this middleware:
class LighttpdScriptNameFix
def initialize(app)
@app = app
def call(env)
env["PATH_INFO"] = env["SCRIPT_NAME"].to_s + env["PATH_INFO"].to_s
env["SCRIPT_NAME"] = ""
Of course, use this only when your app runs at "/".
Jump to Line
Something went wrong with that request. Please try again.