X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=doc%2Fpatplex.doc;h=d2ee009b0c352e4969f94023d829015a8a4d355d;hb=58c3e8b181230a562851ca4dadaeb38ace76a08f;hp=633b22e8ad34a8874a9f0e4cc5f9647685b40a9a;hpb=82f45de1f45b92a89e710b480b9cfe75ab7b069a;p=ashd.git diff --git a/doc/patplex.doc b/doc/patplex.doc index 633b22e..d2ee009 100644 --- a/doc/patplex.doc +++ b/doc/patplex.doc @@ -46,9 +46,9 @@ Should the global and the given configuration files conflict, the directives from the given file take precedence. The configuration files follow the same general format as for -*dirplex*(1), though the recognized stanzas differ. The *child* and -*fchild* stanzas are also shared with *dirplex*(1), so see its manpage -for a description thereof. +*dirplex*(1), though the recognized stanzas differ. The *child*, +*fchild* and *include* stanzas are also shared with *dirplex*(1), so +see its manpage for a description thereof. *patplex* recognizes the *match* stanza, which takes no arguments, but must contain at least one follow-up line to specify match rules. All @@ -101,14 +101,23 @@ only the *handler* action is recognized: 'HANDLER' must be a named handler as declared by a *child* or *fchild* stanza, to which the request is passed. -Additionally, a *match* stanza may contain a *restpat* line: +Additionally, a *match* stanza may contain any of the following, +optional lines: + +*set* 'HEADER' 'VALUE':: + + If the *match* stanza as a whole matches, the named HTTP + 'HEADER' in the request is set to 'VALUE' before passing the + request on to the specified handler. A *match* stanza may + contain any number of *set* lines. *restpat* 'TEMPLATE':: If the *match* stanza as a whole matches, 'TEMPLATE' is expanded and installed as the rest string of the request before it is passed to the specified handler. In 'TEMPLATE', - the following parameters are recognized and expanded. + the following parameters are recognized and expanded. At most + one *restpat* line may be given per *match* stanza. *$0* ... *$9*:: @@ -156,7 +165,7 @@ them. -------- child root - exec sudo -u www-data dirplex /srv/www/htdocs + exec sudo -u www-data dirplex /srv/www child userdir exec userplex -g users match @@ -184,7 +193,7 @@ match # Use the last level of the domain name to enter a subdirectory. match header host ^([^.]*)\\.multi\\.org$ is - restpat $1$_ + restpat $1/$_ handler site-multi --------