Re: RELEASED: scgi-1.6

Neil Schemenauer <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Thu, Aug 11, 2005 at 10:34:07AM -0700, Al Pacifico wrote:
> I'm getting a similar problem (to what Bruce Wang reported) with scgi-1.6.

The Apache 2 module in version 1.6 also has a bad bug.  I added a
map_to_location hook that fixed the PATH_INFO bug in 1.5 but it is
preventing non-SCGI requests from working.  The attached patch
should fix the problem.  Sorry about all the screw-ups.

Please let me know if the patched version works for you.

  Neil


diff -rN -u old-scgi/apache2/mod_scgi.c new-scgi/apache2/mod_scgi.c
--- old-scgi/apache2/mod_scgi.c	2005-08-10 16:28:29.000000000 -0600
+++ new-scgi/apache2/mod_scgi.c	2005-08-11 13:24:32.000000000 -0600
@@ -111,8 +112,10 @@
 
 static int scgi_map_location(request_rec *r)
 {
-	/* We don't want directory walk. */
-	return OK;
+    if (r->handler && strcmp(r->handler, "scgi-handler") == 0) {
+        return OK; /* We don't want directory walk. */
+    }
+    return DECLINED;
 }
 
 static void log_err(const char *file, int line, request_rec *r,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.