[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

mod_asis

This module allows you to use the .asis 'file format', which is a file carrying some http response headers before its actual content:
Content-Type: text/html
Last-Modified: unknown

<HTML><HEAD><TITLE>example</TITLE></HEAD>
<BODY BGCOLOR="#ffffff">...


Currently mod_asis is an extension of mod_static and requires to be activated with the ParseExt directive in the nanoweb main configuration file:
ParseExt = asis asis
The first argument gives the file extension which the .asis files need to have, while the second lowercase 'asis' defines the parser class of mod_asis to be used.

This works very well for text/html files, but for files containing binary content you should consider using mod_meta and a companion *.meta file carrying the headers instead.




NANOWEB, the aEGiS PHP web server