X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=doc%2Fdirplex.doc;h=fb4b7e71d40021d17b6bc5067ef097c1b52e5ee6;hp=e4c3b3ecbc3326d2b8224c7b281948224437588b;hb=eb968b932571cac89ca65ce6d522af369757e17f;hpb=5ba4cb3a4ee0220e7bd1f2480c2b2f831004266d diff --git a/doc/dirplex.doc b/doc/dirplex.doc index e4c3b3e..fb4b7e7 100644 --- a/doc/dirplex.doc +++ b/doc/dirplex.doc @@ -261,6 +261,22 @@ following actions are recognized: by a *fchild* stanza. This action exists mostly for convenience. +A *match* stanza may also contain any number of the following, +optional directives: + +*set* 'HEADER' 'VALUE':: + + If the *match* stanza is selected as the match for a file, the + named HTTP 'HEADER' in the request is set to 'VALUE' before + passing the request on to the specified handler. + +*xset* 'HEADER' 'VALUE':: + + *xset* does exactly the same thing as *set*, except the + 'HEADER' is automatically prepended with the `X-Ash-` + prefix. The intention is only to make configuration files + look nicer in this very common case. + 404 RESPONSES ------------- @@ -291,9 +307,13 @@ EXAMPLES The *sendfile*(1) program can be used to serve HTML files as follows. -------- +fchild send + exec sendfile + match filename *.html - fork sendfile -c text/html + xset content-type text/html + handler send -------- Assuming the PHP CGI interpreter is installed on the system, PHP