Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@halorgium
Created April 19, 2009 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halorgium/0f72d15dc9f61d7b53ce to your computer and use it in GitHub Desktop.
Save halorgium/0f72d15dc9f61d7b53ce to your computer and use it in GitHub Desktop.
# If the Rackup is located at /home/rack/app1/config.ru
# For a request "/foo/bar", this should return "/foo/bar".
# Instead it returns "/home/rack/app1/public", which is the DOCUMENT_ROOT
app = lambda {|env|
[200, {}, "PATH_INFO: #{env['PATH_INFO']}"
}
run app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment