>Number: 3529 >Category: mod_autoindex >Synopsis: HeaderName and ReadmeName directives don't work intuitively >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Sun Dec 13 13:10:00 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.3 >Environment: RedHat Linux 5.2 - Kernel 2.1.126 and 2.0.36 >Description: I've seen this problem brought up a couple of times in the Bugtraq datbase and I'd like to suggest my solution.
The problem is that using the HeaderName and ReadmeName directives doesn't seem to follow with the format of other directives. It's hard to tell that the directives actually specify a prefix filename rather than a full filename in most cases. It took me a moment to figure out that I needed to call the file in the directory that I wanted indexed 'HEADER.html'. One other previously brought up problem is that you can't get server side parsed files to work. For instance a .php3 or .shtml file. >How-To-Repeat: >Fix: I think that the HeaderName and ReadmeName directives should work like the DirectoryIndex directive does. They should take multiple arguements and use the first matched file in the list. So if I wanted it to search for plain text files followed by regular HTML files followed by PHP files I could put something like this in for the directive: HeaderName HEADER HEADER.html HEADER.phtml I'm not sure if there are any plans for some kind of index templete file, but this should hold most people over til then, and be easy enough to impletement. Please make sure that SSI and PHP files are parsed when being used as a header before releasing this feature, thanks. -- Suso ps. a FooterName directive for a footer include file would be nice too. ;-) >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [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! ]
