Red Hat DIRECTORY SERVER 2.0 - GATEWAY Manual de usuario Pagina 53

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 96
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 52
Chapter 6. Handling directories
FoldersFirst
List the subdirectories before the plain files.
SuppressHTMLPreamble
Instructs the web server not to create the HTML preamble but to rely on the
header file (identified by the HeaderName command) to provide it instead.
NameWidth=width (f)
Specifies the width of the Name column. If the width is a number then it is that
many characters wide. If it is an asterisk then it is as wide as the longest name
(with a lower bound).
DescriptionWidth=width (f)
Specifies the width of the Description column. If the width is a number then it
is that many characters wide. If it is an asterisk then it is as wide as the longest
description (with a lower bound).
IconWidth (f)
If icons are being used then this specifies that the web server should include the
WIDTH attribute in the <IMG/> tag.
If it is used on its own then it inserts a width of 20 pixels. This is the width
of every icon shipped in the icons directory. Alternatively, it can be used as
IconWidth=N whereupon it will use N as the width. All icons must be of the
same width; Apache has no mechanism to analyse icons on the fly.
IconHeight (f)
If icons are being used then this specifies that the web server should include the
HEIGHT attribute in the <IMG/> tag.
If it is used on its own then it inserts a height of 22 pixels. This is the height
of every icon shipped in the icons directory. Alternatively, it can be used as
IconHeight=N whereupon it will use N as the height. All icons must be of the
same height; Apache has no mechanism to analyse icons on the fly.
HTMLTable (f)
This instructs Apache to use an HTML table rather than a <PRE> block to present
the listing.
Using both modules
What happens if we run both modules? The answer is “it depends on what order we
load them in”. If we load autoindex_module and then dir_module the latter is never
used. The reason for this is that Apache runs though its modules in order looking
for one that can handle the request. If a directory query is received then, even if the
directory contains an index.html file, autoindex_module can handle it and does so.
If we load dir_module first then the situation is far more useful. If there is
an index.html file then it is used. If there isn’t then the directory is indexed
automatically. But there’s a little more. If both are in play then the ScanHTMLTitles
option gives us a little more. If a subdirectory contains an index.html file then its
<TITLE> is used as a description for the directory in the parent directory’s automatic
index.
49
Vista de pagina 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 95 96

Comentarios a estos manuales

Sin comentarios