Skip to content
This repository
Newer
Older
100644 21 lines (16 sloc) 0.582 kb
d773b8bb » chneukirchen
2007-03-03 Add README and other documentation
1 = Known issues with Rack and Web servers
2
3 * Lighttpd sets wrong SCRIPT_NAME and PATH_INFO if you mount your
4 FastCGI app at "/". This can be fixed by using this middleware:
5
6 class LighttpdScriptNameFix
7 def initialize(app)
8 @app = app
9 end
10
11 def call(env)
12 env["PATH_INFO"] = env["SCRIPT_NAME"].to_s + env["PATH_INFO"].to_s
13 env["SCRIPT_NAME"] = ""
14 @app.call(env)
15 end
16 end
17
18 Of course, use this only when your app runs at "/".
80e9b60a » chneukirchen
2009-12-20 Mention fix-root-scriptname in KNOWN-ISSUES
19
20 Since lighttpd 1.4.23, you also can use the "fix-root-scriptname" flag
21 in fastcgi.server.
Something went wrong with that request. Please try again.