Name

http_file — Metaproxy HTTP File Server Module

DESCRIPTION

This module enables file access via the HTTP protocol. All URLs with a given prefix are directed to a specific document root (on local file storage). The module only serves static content.

SCHEMA

# Metaproxy XML config file schemas
#
#   Copyright (C) Index Data
#   See the LICENSE file for details.

namespace mp = "http://indexdata.com/metaproxy"

filter_http_file =
  attribute type { "http_file" },
  attribute id { xsd:NCName }?,
  attribute name { xsd:NCName }?,
  element mp:mimetypes { xsd:string }?,
  element mp:area {
    element mp:documentroot { xsd:string },
    element mp:prefix { xsd:string },
    element mp:raw { xsd:boolean }?,
    element mp:passthru { xsd:boolean }?
  }*

   

EXAMPLES

A typical configuration looks like this:

   <filter type="http_file">
    <mimetypes>/etc/mime.types</mimetypes>
    <area>
     <documentroot>/var/www/metaproxy/html</documentroot>
     <prefix>/etc</prefix>
    </area>
   </filter>

   

SEE ALSO

metaproxy(1)

COPYRIGHT

Copyright (C) 2005-2023 Index Data