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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 96
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 48
Chapter 6. Handling directories
To add HTML above the listing the configuration must identify a header file. This file
must have a name that identifies it as having MIME content type text/html. In the
simple case, however, the file’s content, should not be a full HTML document but just
the HTML body component (without the leading BODY tag) for the text to appear
above the listing. Everything else will be automatically generated. We identify this
file (should it exist) with the HeaderName command.
HeaderName HEADER.html
Figure 6-28. httpd.conf: Specifying a header file
<p>Here is an HTML fragment to appear above
the file listing.</p>
Figure 6-29. The HEADER.html file
Figure 6-30. The file listing with header file included
Note that the HEADER.html file appears in the listing too. Typically this is not wanted
as it is already “doing its job” by having its contents appear at the top of the page.
The file HEADER.html would be a good candidate for the IndexIgnore command.
Sometimes, you do want to modify the HTML headers provided by the web
server. For this purpose there is an option to the IndexOptions command:
SuppressHTMLPreamble. With this option in place, the HEADER.html file should be a
complete “top half” of an HTML document.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>An index page</title>
45
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 95 96

Comentarios a estos manuales

Sin comentarios