From: "Martin Kraemer" <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 2:44 AM


> On Sun, Aug 19, 2001 at 11:10:15PM -0500, William A. Rowe, Jr. wrote:
> > By using a Type Map with integrated content (one file per error) - see my commit 
>tommorow :)
> 
> Side Proposal: Use a MIME format with multipart/alternative, add a
> MIME parser to Apache, and use the MIME headers to select the correct
> variant.

Very similar to what I did, and I'm not altogether happy about my syntax.
It requires some sort of tags, because the body may contain binary data
(think in terms of a collection of gifs, or including some very obscure
encodings.)  I added the body tag to include (as binary) everything to 
the end tag.  This patch was simply the straightest line.

The patch is attached.  It has an intrinsic limit of 8100 some bytes per
body, which isn't that unreasonable, but could be expanded.  Longer entities 
should be dropped into their own URI: locations.  It creates file buckets, and
just caches the offsets, rather than reading in all the possible bodies before
we run the negotation.  File buckets are pretty slick :)

I've attached the auth_required.html.var messages from Lars' collection.  I added
the images and include folders to /serverroot/error/ and placed this file in this
folder, added the following;

Alias /error/ "/serverroot/error/"

<Directory "/serverroot/error">
    AllowOverride None
    Options IncludesNoExec
    AddHandler type-map var
    SetOutputFilter Includes
    Order allow,deny
    Allow from all
</Directory>

# we're going nowhere fast :)
Alias /secure/ "/serverroot/secure/"

<Directory "/serverroot/secure">
    AllowOverride None
    Options Multiviews
    Order allow,deny
    Allow from all
    AuthUserFile "/serverroot/conf/.htsecure"
    AuthName "why?"
    AuthType basic
    Require valid-user
</Directory>

Experiment, and please comment on my (admittedly lame) syntax.

Bill

negotate_bodies.patch

auth_required.html.var

Reply via email to