Project

General

Profile

Actions

Bug #668

closed

FCGI apps configured for "/" cause infinite 301 redirects.

Added by maherb almost 18 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:

Description

This bug is fixed with this tiny change:


Index: src/mod_fastcgi.c
===================================================================
--- src/mod_fastcgi.c   (revision 1125)
+++ src/mod_fastcgi.c   (working copy)
@@ -3518,6 +3518,7 @@

                        /* the rewrite is only done for /prefix/? matches */
                        if (extension->key->ptr[0] == '/' &&
+                           extension->key->used > 2 &&
                            con->uri.path->used > extension->key->used &&
                            NULL != (pathinfo = strchr(con->uri.path->ptr + extension->key->used - 1, '/'))) {
                                /* rewrite uri.path and pathinfo */
Actions #1

Updated by Anonymous almost 16 years ago

This patch doesn't help, if you are in authorizer mode, and check-local = disable

-- Bolik

Actions #2

Updated by gstrauss about 8 years ago

Should be fixed in

commit ce39062dd260960e927be6344a71eca4b0bef314
Author: Stefan Bühler <stbuehler@web.de>
Date:   Wed Apr 1 17:35:17 2009 +0000

    Fix workaround for incorrect path info/scriptname if fastcgi prefix is "/" (fixes #729)

    git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2421 152afb58-edef-0310-8abb-c4023f1b3aa9

and in subsequent commits. See notes in ticket #729 and commits r2182 and r2421

Actions #3

Updated by gstrauss about 8 years ago

  • Description updated (diff)
  • Status changed from New to Fixed
Actions

Also available in: Atom