[Catalyst-dev] nginx patch to Engine::FastCGI?

J. Shirley jshirley at gmail.com
Sat Nov 1 00:09:59 GMT 2008


On Fri, Oct 31, 2008 at 4:55 PM, Ash Berlin <ash_cpan at firemirror.com> wrote:
>
> On 31 Oct 2008, at 23:42, J. Shirley wrote:
>
>> On Fri, Oct 31, 2008 at 4:26 PM, Ash Berlin <ash_cpan at firemirror.com>
>> wrote:
>>>
>>> On 31 Oct 2008, at 19:52, J. Shirley wrote:
>>>
>>>>
>>>> I'm not too worried about minor patches for upstream servers, as
>>>> lighttpd requires a slight tweak to work properly with Engine::FastCGI
>>>> too.
>>>>
>>>
>>> It does? As far as I'm aware i've not patched anything in cat to get my
>>> app
>>> running under lighty with fastcgi...
>>>
>>
>> Look at Catalyst::Engine::FastCGI:
>>       # If we're running under Lighttpd, swap PATH_INFO and SCRIPT_NAME
>>       # http://lists.rawmode.org/pipermail/catalyst/2006-June/008361.html
>>       # Thanks to Mark Blythe for this fix
>>       if ( $env{SERVER_SOFTWARE} && $env{SERVER_SOFTWARE} =~ /lighttpd/ )
>> {
>>           $env{PATH_INFO} ||= delete $env{SCRIPT_NAME};
>>       }
>
> Ah - the difference between requires and required. As in its already in the
> server, and I took your message to mean further user interaction was needed.
> So yeah, looks like we need something similar for nginx. However I think the
> lighty solution doesn't need any special config. (I could be wrong here as
> I've not attempted non-root lighty+fcgi ever)
>
> -ash
>

nginx already requires special configuration to "work" (it doesn't
populate PATH_INFO at all) so you still have to follow a recipe.  It's
very trivial, though, and I don't think it would confuse anybody.

I just really hate the "Lets s/// envvars!" approach...



More information about the Catalyst-dev mailing list