IntroductionIntroduction
  CGI and SSICGI and SSI
  <pike> tag<pike> tag
  Pike scriptPike script
  ModulesModules
  Parser modulesParser modules
  Location modulesLocation modules
  Other module typesOther module types
    <Authentification>Authentification<Authentification>Authentification
    <Directory>Directory<Directory>Directory
    <Extension>Extension<Extension>Extension
    <File extension>File extension<File extension>File extension
    <Filter>Filter<Filter>Filter
    <First>First<First>First
    <Last>Last<Last>Last
    <Log>Log<Log>Log
    <Provider>Provider<Provider>Provider
    <URL>URL<URL>URL
  Request information objectRequest information object
  ResponsesResponses
  Library methodsLibrary methods
 
Directory

A directory type module handle accesses to directories. This is usually done by creating a directory listing of the contents in the directory, or finding a suitable index file to be returned instead. There can only be one directory module in a virtual server.

The module type constant for directory modules are MODULE_DIRECTORIES.

The following API methods are available:

mixed parse_directory( object id )
returns a normal response containing either a suitable directory listing or an index file. The path to the directory is found in id->not_query.