Received: (qmail 88233 invoked by uid 501); 11 Dec 2000 04:33:37 -0000 Message-Id: <20001211043337.88232.qmail@locus.apache.org> Date: 11 Dec 2000 04:33:37 -0000 From: Kevin Martin Reply-To: sigma@pair.com To: submit@bugz.apache.org Subject: HeaderName directive doesn't work for some filenames. X-Send-Pr-Version: 3.110 >Number: 6957 >Category: mod_autoindex >Synopsis: HeaderName directive doesn't work for some filenames. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Dec 10 20:40:00 PST 2000 >Closed-Date: Tue Aug 07 07:31:50 PDT 2001 >Last-Modified: Tue Aug 07 07:31:50 PDT 2001 >Originator: sigma@pair.com >Release: 1.3.14 >Organization: >Environment: FreeBSD 4.1.1-STABLE, gcc 2.95.2 >Description: "HeaderName filename" directive does not work for filenames with no extension, nor for filenames without a specifically defined MIME type. So "HeaderName headerfile" fails, even if DefaultType is set to text/plain, while "HeaderName headerfile.txt" succeeds, because "txt" is defined as "text/plain" in mime.types. This is a change from older Apache 1.3.x behavior. >How-To-Repeat: Setup a directory with two files in it named "h" and "h.txt". Create ".htaccess" with the entry "HeaderName h" and then view the directory index through Apache. Try again with "HeaderName h.txt". >Fix: Maybe mod_autoindex isn't checking the default MIME type to make sure it knows how to handle the header file its given? >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: wrowe State-Changed-When: Tue Aug 7 07:31:49 PDT 2001 State-Changed-Why: Dup of PR 4991 >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]