summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hoststated.conf.5
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-27 13:38:59 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-27 13:38:59 +0000
commitc9264b75c20efb4a4120a89f107e9771dd42b1bf (patch)
treea37c32994cb34289a2dc16d2ec5eb31ec258545c /usr.sbin/hoststated/hoststated.conf.5
parente7c46625ff26167cee75d713d172dc7d865df298 (diff)
in addition to actions on request headers, allow to define relay
actions on response headers (the reply sent by backend HTTP servers). the default and slightly faster relay streaming mode will be used if no actions are defined. for example: response change "Server" to "OpenBSD-hoststated/4.1" ok pyr@
Diffstat (limited to 'usr.sbin/hoststated/hoststated.conf.5')
-rw-r--r--usr.sbin/hoststated/hoststated.conf.516
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/hoststated.conf.5 b/usr.sbin/hoststated/hoststated.conf.5
index 82b399e01be..872dc3ed097 100644
--- a/usr.sbin/hoststated/hoststated.conf.5
+++ b/usr.sbin/hoststated/hoststated.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hoststated.conf.5,v 1.34 2007/02/27 08:39:00 reyk Exp $
+.\" $OpenBSD: hoststated.conf.5,v 1.35 2007/02/27 13:38:58 reyk Exp $
.\"
.\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
.\"
@@ -415,6 +415,7 @@ Handle the Hypertext Transfer Protocol
Generic handler for TCP-based protocols.
.El
.It Xo
+.Op Ar direction
.Op Ar type
.Ar action
.Op Ic log
@@ -426,6 +427,17 @@ keyword will log the entity name and the value.
The actions are depending on the underlying application
.Ic protocol .
.Pp
+The following directions are allowed for the specified action:
+.Bl -tag -width Ds
+.It Ic request
+Handle the data stream from the client to the relay, like HTTP
+requests.
+This is the default if the direction directive is omitted.
+.It Ic response
+Handle the data stream from the target host to the relay, like
+HTTP server replys.
+.El
+.Pp
The following entity types for the actions are available:
.Bl -tag -width Ds
.It Ic header
@@ -437,6 +449,8 @@ mode.
Look up the entity as a GET variable in the URL when using the
.Ic http
protocol.
+This type is only available with the direction
+.Ic request .
.El
.Pp
The following actions are available: