13. Serving Static Files

Although WebPublisher is not designed to be a static file server, files placed in the server public directory are accessible to a browser. Requests for files in the server root directory will be redirected to the public directory. It is not necessary to specify the public directory in the URL.

A request for:
http://serverIP:port/favicon.ico
will be internally redirected to:
http://serverIP:port/public/favicon.ico

File extensions are mapped to MIME content-types as specified in the Server MIME table. The list of mappings can be modified by using the Mime Manager in the WebPublisher Studio Client.

  • User defined MIME types can be added using the Mime Type Editor.
  • Unspecified extensions will be mapped to a MIME type of application/octet-stream.
  • Static files to be served must not be larger than 10MB.