2. URL Resolution

2.1 Static files

To serve static files (HTML files, GIF or JPEG Images, etc) all you have to do is to store them to the Root Directory

Suppose you create an HTML document called myFile.htm and put it in the Root Directory. Type in the URL http://myhost/myFile.htm in the address field of the browser ; you should see the file displayed in the browser

If you save the file in a subdirectory, you must prepend its name : for the file myImage.gif in subdirectory images, the url will be http://myhost/images/myImage.gif

2.2 Alias

To reach files out of the Root Directory, use aliases (see configuration options)

2.3 Default file extensions

If the extension of a file is not specified, the server will look for a file with one of the extensions html, htm, py, pih, hip or ks. If it finds one, this file is used ; if it finds more than one, an exception is raised ; if no file is found, an exception is raised too

2.4 Directories

If no file name is specified and the url matches a directory, the server looks for a file with the name index.html, index.htm, index.py, index.pih, index.hip or index.ks. If it fonds one, it is used to build the response ; if it finds more than one, it raises an exception

If it doesn't find one, the behaviour depends on the option allow_directory_listing in the configuration options : depending on its value, either a list of directories and files is displayed, or an error message is sent back