Yawn - Directory indexes


Yawn is very flexible when it comes to serving a directory index. The administrator can make a file of virtually any name to be served as the pre-defined index for a directory. An entry in the httpd.cfg file like the following:

DirectoryIndex index.htm index.htm welcome.htm home.htm start.htm

causes the server to search for the specified files, in the order given, when a directory index is requested. It is of course also possible to request automatic filename expansion, so that each of the above entries may be refrenced as a file with a .htm/.html or .xtm/.xtml extension. Test the following links. Pay attention to filenames appaering as window titles.

  1. Directory with an index.htm file

  2. Directory with an index.htm file

  3. Directory with a welcome.htm file

  4. Directory with a home.htm file

  5. Directory with a start.htm file

Notice: The first present file from the DirectoryIndex directive is retrieved. If, for example, a directory contains the last three above, the search will stop after welcome.htm has been found.


[Home - Overview - Downloading - Installation - Configuration -
Implementation notes - License - Registering - Contacts]