Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Use `xset content-type' for the dirplex sendfile example.
[ashd.git]
/
doc
/
dirplex.doc
diff --git
a/doc/dirplex.doc
b/doc/dirplex.doc
index
9f3aab2
..
fb4b7e7
100644
(file)
--- a/
doc/dirplex.doc
+++ b/
doc/dirplex.doc
@@
-261,8
+261,8
@@
following actions are recognized:
by a *fchild* stanza. This action exists mostly for
convenience.
by a *fchild* stanza. This action exists mostly for
convenience.
-A *match* stanza may also contain any number of
*set* lines, as
-
follow
s:
+A *match* stanza may also contain any number of
the following,
+
optional directive
s:
*set* 'HEADER' 'VALUE'::
*set* 'HEADER' 'VALUE'::
@@
-270,6
+270,13
@@
follows:
named HTTP 'HEADER' in the request is set to 'VALUE' before
passing the request on to the specified handler.
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
-------------
404 RESPONSES
-------------
@@
-300,9
+307,13
@@
EXAMPLES
The *sendfile*(1) program can be used to serve HTML files as follows.
--------
The *sendfile*(1) program can be used to serve HTML files as follows.
--------
+fchild send
+ exec sendfile
+
match
filename *.html
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
--------
Assuming the PHP CGI interpreter is installed on the system, PHP