Red Hat DIRECTORY SERVER 2.0 - GATEWAY Uživatelský manuál Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 96
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
Chapter 6. Handling directories
Several options we will meet rely on a specific module and their use must follow the
LoadModule lin in the configuration file.
LoadModule autoindex_module modules/mod_autoindex.so
Options +Indexes
Figure 6-6. httpd.conf: Loading and enabling autoindex_module
And now, if we ask for the / URL we get the list of the single file (index.html) that
appears in the top-level directory.
Figure 6-7. The top-level listing
By default, the index produced is a very simple one (an itemized list in HTML). The
module provides a command, IndexOptions, which allows us to present a bit more
information about the files.
To see it in operation we will add a simple IndexOptions command to our configu-
ration file to turn on “fancy indexing”.
IndexOptions FancyIndexing
Figure 6-8. httpd.conf: Turning on fancy indexing
Now when we ask for the / URL we get a different format of output.
34
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 95 96

Komentáře k této Příručce

Žádné komentáře