public
Description: OUTDATED mirror of Rack's darcs repository, use github.com/chneukirchen/rack
Homepage: http://rack.rubyforge.org/
Clone URL: git://github.com/chneukirchen/rack-mirror.git
chneukirchen (author)
Sun May 25 07:32:00 -0700 2008
commit  c3d6e4a3dc6bc367529d11515bdf1e7eb2a93912
tree    66e82a15b33ab34834fe4e16e8075e9e5bb915d4
parent  5a117d0b45b4ed2785a714eaa060e8c66512c4c3
rack-mirror / KNOWN-ISSUES
100644 19 lines (14 sloc) 0.487 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
= 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
      end
 
      def call(env)
        env["PATH_INFO"] = env["SCRIPT_NAME"].to_s + env["PATH_INFO"].to_s
        env["SCRIPT_NAME"] = ""
        @app.call(env)
      end
    end
 
  Of course, use this only when your app runs at "/".