#218 √ resolved
Martin Grund

empty PATH_INFO breaks FastCGI process

Reported by Martin Grund | March 22nd, 2008 @ 07:50 PM | in 0.9

Hi,

I run Merb on an Apache2 installation with mod_fcgid setup and the startup of the FCGI process fails, because it calls

path = env['PATH_INFO'].chomp('/')

in merb-core/rack/application.rb but PATH_INFO is not set. There is a bug report in Rack, that complains that Rack does not set this variable.

The easiest way to fix this bug is to change the line to

path = env['PATH_INFO'] ? env['PATH_INFO'].chomp('/') : ""

Comments and changes to this ticket

  • Ezra Zygmuntowicz

    Ezra Zygmuntowicz March 23rd, 2008 @ 12:50 AM

    • → Milestone changed from “” to “0.9”
    • → State changed from “new” to “resolved”
    • → Assigned user changed from “” to “Ezra Zygmuntowicz”

    Fixed in HEAD. Can you post an example somewhere of a working FCGI config for a merb app? I haven't bothered a lot with fcgi myself lately and want to make sure it works properly.

    I'll close this ticket, but an fcgi example config would be appreciated.

  • Martin Grund

    Martin Grund March 23rd, 2008 @ 08:17 PM

    During the try to setup merb with fcgi I ran into serveral problems. I open tickets for them seperately

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

People watching this ticket