# ----------------------------------------------------------------------------- # # Haskell Web Server Example Config File # # (c) Simon Marlow 1999-2000 # (c) Bjorn Bringert 2006 # ----------------------------------------------------------------------------- # Things you really need to change # The canonical name of the server. ServerName "localhost" # Other names for this server. All names that clients may use # to access this server should be listed here. ServerAlias "localhost.localdomain" ServerAlias "127.0.0.1" # The port to listen on. This can be just a port number, to bind to # all addresses, or an address and a port number. # # Default: # Listen 80 # # Examples: # Listen 12.13.14.15:80 Listen 21398 # The file system directory from which files are served. # If this is a relative path, it is considered relative to the working # directory of the web server process. # # Default: # DocumentRoot "." # # Examples: # DocumentRoot "/usr/local/www/data" # DocumentRoot "/home/simonmar/tmp/www" DocumentRoot "." # The e-mail address of the server administrator. Used in error messages. # # Default: # ServerAdmin "" # # Examples: # ServerAdmin "root@localhost" ServerAdmin "root@localhost" # ----------------------------------------------------------------------------- # Other server configuration User "nobody" # not implemented Group "nogroup" # not implemented Timeout 300 KeepAliveTimeout 15 MaxClients 150 # not implemented UseCanonicalName Off # not implemented # If the userdirectory module is enabled: # Directory in users' home directories used to serve /~user/* requests. # If this is the empty string, user directory requests are not handled. # # Default: # UserDirectory "" # # Examples: # UserDirectory "public_html" UserDirectory "public_html" # When a directory without trailing slash is requested # we send back a redirect response which adds the slash. # Default: On # AddSlash Off # If the index module is enabled: # When a directory is requested, this file will be used if it # exists in that directory. # # Default: # DirectoryIndex "index.html" # # Examples: # DirectoryIndex "index.html" DirectoryIndex "index.html" # Show contents of a directory? # Default: On # DirectoryListing Off AccessFileName ".htaccess" # not implemented # Path to a MIME types file. This can be absolute, or a path relative # to the server root. # # Examples: # TypesConfig "/etc/mime.types" TypesConfig "conf/mime.types" DefaultType "text/plain" HostnameLookups Off # ----------------------------------------------------------------------------- # CGI scripts CGISuffixes ".cgi" ".pl" ".lhs" # ----------------------------------------------------------------------------- # Log files # Error log path. This can be absolute, or relative to the server root. ErrorLog "log/error.log" # Error logging level. Errors at or above this level will be written # to the error log. # Possible values: # debug | info | notice | warn | error | crit | alert | emerg LogLevel warn # Access log path. This can be absolute, or relative to the server root. CustomLog "log/access.log" "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" # ----------------------------------------------------------------------------- # Language support AddLanguage "en" ".en" # not implemented AddLanguage "fr" ".fr" # not implemented AddLanguage "de" ".de" # not implemented AddLanguage "da" ".da" # not implemented AddLanguage "el" ".el" # not implemented AddLanguage "it" ".it" # not implemented LanguagePriority "en" "fr" "de" # not implemented