X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=doc%2Fdirplex.doc;h=fce3565953439730bb3b8de7b758fd309328f0ee;hp=9f3aab2624f376ebce5fd37c310968a8a29439d5;hb=edcd094e7e9c1f018f0664f78cf7d6c625e1f476;hpb=77a840e52bd16bdcfffec75cb5e7f4a2315d7cf5 diff --git a/doc/dirplex.doc b/doc/dirplex.doc index 9f3aab2..fce3565 100644 --- a/doc/dirplex.doc +++ b/doc/dirplex.doc @@ -224,11 +224,13 @@ The following rules are recognized: *pathname* 'PATTERN'...:: - Matches if the entire path (relative as considered from the - root directory being served) of the file under consideration + Matches if the entire path of the file under consideration matches any of the 'PATTERNs'. A 'PATTERN' is an ordinary glob pattern, except that slashes are not matched by wildcards. See - *fnmatch*(3) for more information. + *fnmatch*(3) for more information. If a *pathname* rule is + specified in a `.htrc` file, the path will be examined as + relative to the directory containing the `.htrc` file, rather + than to the root directory being served. *default*:: @@ -261,8 +263,8 @@ following actions are recognized: by a *fchild* stanza. This action exists mostly for convenience. -A *match* stanza may also contain any number of *set* lines, as -follows: +A *match* stanza may also contain any number of the following, +optional directives: *set* 'HEADER' 'VALUE':: @@ -270,6 +272,13 @@ follows: 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 ------------- @@ -300,9 +309,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