> require 'rack'
> require 'pp'
>
> App = lambda do |env|
> body = ''
> PP.pp env, body
> [200, {'Content-Type' => 'text/plain'}, body]
> end
>
> Rack::Handler::FastCGI.run App, :Port => 9000
>


{"HTTP_ACCEPT"=>
  "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
 "HTTP_HOST"=>"www.mytestsite.com",
 "SERVER_NAME"=>"mytestsite.com",
 "REQUEST_PATH"=>"/",
 "rack.url_scheme"=>"http",
 "HTTP_KEEP_ALIVE"=>"115",
 "HTTP_USER_AGENT"=>
  "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921
Ubuntu/10.04 (lucid) Firefox/3.6.23",
 "DOCUMENT_URI"=>"/",
 "rack.errors"=>#<FCGI::Stream:0xb74df514>,
 "HTTP_ACCEPT_LANGUAGE"=>"hu,en-us;q=0.7,en;q=0.3",
 "SERVER_PROTOCOL"=>"HTTP/1.1",
 "FCGI_ROLE"=>"RESPONDER",
 "rack.version"=>[1, 1],
 "rack.run_once"=>false,
 "REMOTE_ADDR"=>"**.***.**.**",
 "SERVER_SOFTWARE"=>"nginx/1.0.5",
 "SERVER_ADDR"=>"192.168.100.200",
 "SCRIPT_NAME"=>"",
 "HTTP_VERSION"=>"HTTP/1.1",
 "rack.multithread"=>false,
 "rack.multiprocess"=>true,
 "REMOTE_PORT"=>"35088",
 "REQUEST_URI"=>"/",
 "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.7",
 "SERVER_PORT"=>"443",
 "DOCUMENT_ROOT"=>"/var/www/mytestsite.com",
 "REQUEST_METHOD"=>"GET",
 "SCRIPT_FILENAME"=>"/var/www/mytestsite.com/",
 "rack.input"=>
  #<Rack::RewindableInput:0xb74dede4
   @io=#<FCGI::Stream:0xb74df53c>,
   @rewindable_io=nil,
   @unlinked=false>,
 "HTTP_CONNECTION"=>"keep-alive",
 "HTTP_ACCEPT_ENCODING"=>"gzip,deflate",
 "REDIRECT_STATUS"=>"200",
 "GATEWAY_INTERFACE"=>"CGI/1.1",
 "QUERY_STRING"=>""}


You are right, there is no PATH_INFO.  This line in the webserver
config file helped the fastcgi problem:

fastcgi_param PATH_INFO $fastcgi_path_info;


Thanks a lot!
uzlee
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to