Default documents

You can add document names to the DefaultDocuments property of your WebServer instance in order to have the web use default documents, for example:

The web server (currently) uses the following logic when attempting to work out what document to serve:
  • If the request URL maps onto a directory that exists, then:
    • If there is a default document which has a matching handler configured, then the first such default document in the list will be used.
    • If no such document exists, then the web server will look for a handler that maps onto a directory that exists (such as a DirectoryHandler)
  • If the request URL does not map onto a directory then the default documents are ignored.
Default documents are considered on a first-come first-served basis.

Last edited Aug 3, 2010 at 12:21 PM by Kragen2uk, version 6


No comments yet.