httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject [BUG] SuppressHTMLPreamble is ignored
Date Fri, 22 Aug 1997 13:40:23 GMT
In Apache-1.3a2-dev, I experience a mod_autoindex problem.

For a directory @@ServerRoot@@/WebTools/ where a HEADER.html and
README.html exists, I have the problem that all IndexOptions are
honoured _except_for_ the SuppressHTMLPreamble and the IconsAreLinks
option.

: ServerRoot  /var/WWW/Web
:
: # Deny everything below the ServerRoot
: <Directory />
:   Options FollowSymLinks
:   AllowOverride None
: </Directory>
:
: # Everything under ServerRoot is freely accessible, directories may contain overrides
: <Directory /var/WWW/Web>
:   AllowOverride All
:   Options +Indexes +FollowSymLinks
: </Directory>
:
: <Directory /var/WWW/Web/WebTools>
:   # This _ought_ to be redundant (given the <Directory /var/WWW/Web> def'n)
:   AllowOverride All
: </Directory>

and in the  /var/WWW/Web/WebTools/.htaccess:
___
: FancyIndexing on
: Options +Indexes +FollowSymLinks
: IndexOptions FancyIndexing IconsAreLinks SuppressHTMLPreamble IconHeight=16 IconWidth=16
~~~
The HEADER.html starts with
: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
: <HTML>
:  <HEAD>
:   <TITLE>deejai's /WebTools collection</TITLE>
:  </HEAD>
:  <BODY background="/images/bnd_wire.gif"><UL>

The resulting output, however, starts with a duplicate HTML header:
: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
: <HTML>
:  <HEAD>
:   <TITLE>Index of /WebTools</TITLE>
:  </HEAD>
:  <BODY>
: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
: <HTML>
:  <HEAD>
:   <TITLE>deejai's /WebTools collection</TITLE>
:  </HEAD>
:  <BODY background="/images/bnd_wire.gif"><UL>
: [...]

and the IconsAreLinks is ignored, too:
: <IMG SRC="/icons/new/tar.gif" ALT="[CMP]" HEIGHT="16" WIDTH="16"> <A HREF="apache_1.2.4.tar.gz">apache_1.2.4.tar.gz</A>
   22-Aug-97 09:35   688k  Apache-1.2.4 final!
: <IMG SRC="/icons/new/key.gif" ALT="[   ]" HEIGHT="16" WIDTH="16"> <A HREF="apache_1.2.4.tar.gz.asc">apache_1.2.4.tar.gz.asc</A>22-Aug-97
09:35     1k  Apache-1.2.4 PGP-Sig

In the code of mod_autoindex, everything appears to look correct....

What I am puzzled about:
*   IconHeight=16 IconWidth=16 are honored, why aren't IconsAreLinks and
    SuppressHTMLPreamble?

Anyone?
    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message