Download and apply this context diff with Apache v1.2b7 and you'll get additional SuppressHTMLPreamble option. |
Currently it is impossible to suppress initial HTML preamble for directories, i.e.
<HEAD><TITLE>
Index of directory</TITLE></HEAD><BODY>
It means that it is impossible to change <TITLE>
or add any
<META HTTP-EQUIV...>
tags (f.e. for character set indication) to
<HEAD>
section or change <BODY>
attributes (like BACKGROUND=...
)
without HTML syntax violation (.asis, cern_meta, mod_headers, etc.
not helps here too).
I add SuppressHTMLPreamble option to IndexOptions. When this option
is set and HEADER.html
(or what you set as it) is present and readable,
standard
<HEAD><TITLE>
Index of directory</TITLE></HEAD><BODY>
preamble
will be suppressed assuming you have right HTML preamble in your
HEADER.html
. It solves all problems mentioned above.
See also Apache charset negotiation via .var files.
![]() |