This project is archived and is in readonly mode.

#2656 ✓stale
inosin

lighttpd+fcgi can't auto load metal?

Reported by inosin | May 16th, 2009 @ 06:38 AM | in 3.x

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?

Comments and changes to this ticket

  • inosin

    inosin May 16th, 2009 @ 08:35 AM

    • 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"?

  • Jeremy Kemper

    Jeremy Kemper May 4th, 2010 @ 06:48 PM

    • Milestone changed from 2.x to 3.x
  • Rohit Arondekar

    Rohit Arondekar October 9th, 2010 @ 04:16 AM

    • 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.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages