Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

lighttpd+fcgi can't auto load metal?

#2656

my server used lighttpd and fcgi

RAILS_ROOT/app/metal/poller.rb
#### class Poller

def call(env)
  if env["PATH_INFO"] =~ /^\/poller/
    [200, {"Content-Type" => "text/html"}, "Hello, World!"]
  else
    [404, {"Content-Type" => "text/html"}, "Not Found"]
  end
end

end ####

I start WEBrick server on localhost is ok
$curl http://localhost:3000/poller return "Hello, World!"

but i remote access : http://www.mydomain.com/poller
it's return "404 Not Found"

why? Can not auto load metal on fcgi?

Reported by inosin · May 16th, 2009 @ 06:38 AM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. inosin
    inosin
    • Tag set to 2.3.2, fcgi, metal

    Through a lot of test. I found metal no problem.
    the problem is env["PATH_INFO"] is empty.
    replace env["PATH_INFO"] to env["REQUEST_URI"], it's ok

    why? fcgi have not key "PATH_INFO"?

    May 16th, 2009 @ 08:35 AM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  3. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 04:16 AM