IntroductionIntroduction
  InstallingInstalling
  HandlingHandling
  Virtual serversVirtual servers
  ModulesModules
  FilesystemsFilesystems
    <Filesystem modules>Filesystem modules<Filesystem modules>Filesystem modules
    <Directory listing modules>Directory listing modules<Directory listing modules>Directory listing modules
    <Content types>Content types<Content types>Content types
    <File extension modules>File extension modules<File extension modules>File extension modules
  RXML tagsRXML tags
  GraphicsGraphics
  ProxyProxy
  Miscellaneous modulesMiscellaneous modules
  Security considerationsSecurity considerations
  ScriptingScripting
  DatabasesDatabases
  LDAPLDAP
  IntraSeekIntraSeek
  LogViewLogView
  FrontPageFrontPage
  UpgradingUpgrading
  Third party extensionsThird party extensions
  PortabilityPortability
  Reporting bugsReporting bugs
  AppendixAppendix
 
Content types

Over HTTP the type of a file is determined by its MIME content type. A GIF image has the content type image/gif while a HTML page has the content type text/html.

The Content types module, the only one of its kind, handles giving each file a content type. This is done through matching the extension of a file with a content type. Thus .gif files are given the content type image/gif and .html files are given the content type text/html.

Which extension should be matched to which content type is of course fully configurable. A file with the most common extensions and content types is included with Challenger. The Content types module must be enabled for Challenger to operate as a web server. You should only remove it if you are certain that you know what you are doing.

Default content type
This is the default content type which is used if a file lacks extension or if the extension is unknown.

Extensions
A list of extensions and their corresponding content types. The format is as follows:

Extension Type Encoding gif image/gif gz STRIP gnuzip #include <etc/extensions> #include <etc/more-ext> STRIP causes Roxen to add the encoding to the Content-encoding header, strip this extension and try again. A file named roxen.tar.gz would not only get the Content-encoding x-gzip, but also the Content-type application/unix-tar.

The #include directive causes files containing more content type definitions to be included. The syntax for those files is the same as the syntax for this variable.