apache & basic auth

instead of compiling apache with SECURITY_HOLE_PASS_AUTHORIZATION defined
try this ugly hack

compile apache with mod_rewrite, then put this in httpd.conf

ReWriteEngine On
ReWriteRule ^/check(.*) /cgi-bin/check$1 
    [E=HTTP_AUTHORIZATION:%{HTTP:AUTHORIZATION},PT,L]

the ReWriteRule don't do much but the E flag is the important bit.

ugly but it works


Steven Drake <sdrake@ihug.co.nz>
      1: Linux - will work for fish.
      2: The Linux penguin - looks stuffed to the brim with herring.
( make your own conclusions )

Received on Friday, 17 September 1999 12:55:32 UTC