Mailing List Archive



Back to the month index Back to the list index

Luca Fini (lfini@arcetri.astro.it)
Thu, 13 Nov 1997 09:16:55 +0100 (MET)


Date: Thu, 13 Nov 1997 09:16:55 +0100 (MET)
From: Luca Fini <lfini@arcetri.astro.it>
Subject: Re: w3-msql?
Message-ID: <Pine.LNX.3.95.971113085603.338K-100000@lfini>

On Wed, 12 Nov 1997, [ISO-8859-1] Niclas Käld wrote:

> Spec: Linux, Apache, mSQL 2.0.3
> Can I run w3-msql without w3-auth and without patching the Apache
> server?

Sure you can. I'm currently running w3-msql under solaris 2.4 both under
the CERN httpd and under an unpatched Apache server with no problems.

I'm not able to run w3-auth, anyway (I think that the patch is needed for
this)

> If I need to patch the Apache-server, how?

>From the FAQ (http://cal038031.student.utwente.nl/~mSQL/faq.html):

How can I make w3-auth.c work with my Apache HTTPD server?

You need to patch the Apache server itself. The following patch from Simon
Kershaw <Simon.Kershaw@Smallworld.co.uk> works against Apache 1.2b7:

*** src/util_script.c~ Mon Feb 10 11:47:24 1997
--- src/util_script.c Tue Mar 25 15:53:14 1997
***************
*** 174,180 ****
        else if (!strcasecmp (hdrs[i].key, "Content-length"))
            table_set (e, "CONTENT_LENGTH", hdrs[i].val);
        else if (!strcasecmp (hdrs[i].key, "Authorization"))
! continue;
        else
            table_set (e, http2env (r->pool, hdrs[i].key), hdrs[i].val);
      }
--- 174,181 ----
        else if (!strcasecmp (hdrs[i].key, "Content-length"))
            table_set (e, "CONTENT_LENGTH", hdrs[i].val);
        else if (!strcasecmp (hdrs[i].key, "Authorization"))
! table_set (e, "HTTP_AUTHORIZATION", hdrs[i].val);
! /* continue; */
        else
            table_set (e, http2env (r->pool, hdrs[i].key), hdrs[i].val);
      }

To avoid conflicts with mismatched whitespace, apply this patch using the
"-l" option of patch. (That's an "el", NOT a "one" or an "eye").

Cheers,
                        l.f.
--------------------------------------------------------------------------
       -- ) Luca Fini Tel: +39 55 2752 307
 ___ |\ Osservatorio Astrofisico di Arcetri Fax: +39 55 2752 292
/ | | |\_ L.go E.Fermi, 5 o-----------------------------------------
(___|___//___) 50125 Firenze / WWW: http://www.arcetri.astro.it/~lfini
 (_) (_) Italia / e-mail: lfini@arcetri.astro.it
-----------------------------o--------------------------------------------