BACK
Default Values

These are the settings for the "default" virtual server that handles all requests not covered otherwise. These settings can be changed for every virtual server within their own configuration block, using the same names. If a setting doesn't show up in the virtual servers definition block it will take over the default value. Don't forget that the allowed directories are also a "default value" that is used unless you have at least an empty list in the VS settings
  • mainpage
    Path and name of the page that is shown if no path at all is given in the request. Other servers start looking for files like "index.html" when the given target is a directory, well hssTVS doesn't. As it also doesn't offer directory services a user that tries to request a directory will just get a "404 file not found" or a "403 not allowed". So if this entry has an empty string a user that only typed the server url will get a 404/403. The default value is "index.html". The path has to be indirect and based on the content_root.

  • content_root
    Path to the root folder for the static content. This is only a path specification, it doesn't grant access rights to the content there. Default is the folder "content", an empty string represents the current (the server's) working directory. The path can be indirect, based on the working directory of the server, or an absolute path starting with a "/".

  • default_mime
    This allows you to set the file type for unknown file endings. Default is "*/*". Unknown mime types, that is types that result in an empty type string during run time, will not be transmitted. An empty ("") setting will block access to unknown file types, this is equal to default deny access, the default setting or any other non-empty setting is equal to default allow access.

  • unknown_mime_handler
    In case hssTVS encounters an empty mime type string during runtime, it will per default use 403 access denied as response. You can set it to unknown_mime_handler=404 to change that to a 404 file not found. Any value other than 404 defaults back to 403.

  • force 200
    This is a flag and takes no value. Customized error-pages will use a 200 ok response instead of the error number.

  • !force 200
    This is a flag and takes no value. Only works as VirtualServer entry and will override a default "force 200".

  • expires
    Takes an integer value. If set to -1 (default) no Expires header line will be created. Any other negative value will create a date set in the past, so no one will cache it. A positive number equals seconds in the future from the moment of the current access. Usually net-caches (mostly proxies) will not cache files with a setting of less than 60 seconds.


BACK