Red Hat DIRECTORY SERVER 2.0 - GATEWAY Instrukcja Użytkownika Strona 38

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 96
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 95 96

Komentarze do niniejszej Instrukcji

Brak uwag