Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.582 kB
d773b8b @chneukirchen Add README and other documentation
chneukirchen authored
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 "/".
80e9b60 @chneukirchen Mention fix-root-scriptname in KNOWN-ISSUES
chneukirchen authored
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.