Bug#684050: apache2-mpm-prefork: SuppressHTMLPreamble also discards data in the directory listing
Package: apache2-mpm-prefork
Version: 2.2.22-9
Severity: normal
Dear Maintainer,
I was splitting up a validated index.html into README.html and
HEADER.html in order to simplify access to contents of a local
directory. The added HTML preamble and closing broke validation, so I
looked up HeaderName and it advised me to enable
IndexOptions +SuppressHTMLPreamble
which I duly did in .htaccess; this worked as far as validation went,
but the listing of directory contents became an unstyled UL simply
listing the directory contents, each as a link. Without this directive,
I got a nicely styled table with size, last modification and
description, as well as the file-names. The documentation says:
SuppressHTMLPreamble
If the directory actually contains a file specified by the
HeaderName directive, the module usually includes the contents of
the file after a standard HTML preamble (<html>, <head>, et
cetera). The SuppressHTMLPreamble option disables this behaviour,
causing the module to start the display with the header file
contents. The header file must contain appropriate HTML
instructions in this case. If there is no header file, the preamble
is generated as usual.
Nothing about ditching the default styling of the directory listing !
I expected to simply lose the preamble before HEADER.html's content and
</body></html> after README.html's, retaining the usual directory listing.
-- Package-specific info:
List of enabled modules from 'apache2 -M':
actions alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi cgid dir env include info mime
negotiation reqtimeout rewrite setenvif status userdir
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Versions of packages apache2-mpm-prefork depends on:
ii apache2.2-bin 2.2.22-9
ii apache2.2-common 2.2.22-9
apache2-mpm-prefork recommends no packages.
apache2-mpm-prefork suggests no packages.
-- no debconf information
Reply to: