- fix some erroneous keywords for http-request
- stats http-request was not documented
--
Cyril Bonté
--- haproxy-1.4.8/doc/configuration.txt 2010-06-16 22:57:48.000000000 +0200
+++ haproxy-1.4.8-http-request/doc/configuration.txt 2010-09-30 23:27:36.839748005 +0200
@@ -950,6 +950,7 @@
stats auth X - X X
stats enable X - X X
stats hide-version X - X X
+stats http-request - - X X
stats realm X - X X
stats refresh X - X X
stats scope X - X X
@@ -2125,7 +2126,7 @@
See also : "option httpchk", "http-check disable-on-404"
-http-request { allow | deny | http-auth [realm <realm>] }
+http-request { allow | deny | auth [realm <realm>] }
[ { if | unless } <condition> ]
Access control for Layer 7 requests
@@ -2135,8 +2136,8 @@
These set of options allow to fine control access to a
frontend/listen/backend. Each option may be followed by if/unless and acl.
First option with matched condition (or option without condition) is final.
- For "block" a 403 error will be returned, for "allow" normal processing is
- performed, for "http-auth" a 401/407 error code is returned so the client
+ For "deny" a 403 error will be returned, for "allow" normal processing is
+ performed, for "auth" a 401/407 error code is returned so the client
should be asked to enter a username and password.
There is no fixed limit to the number of http-request statements per
@@ -2157,7 +2158,8 @@
http-request auth unless auth_ok
- See section 3.4 about userlists and 7 about ACL usage.
+ See also : "stats http-request", section 3.4 about userlists and section 7
+ about ACL usage.
id <value>
Set a persistent ID to a proxy.
@@ -4614,6 +4616,27 @@
See also : "stats auth", "stats enable", "stats realm", "stats uri"
+stats http-request { allow | deny | auth [realm <realm>] }
+ [ { if | unless } <condition> ]
+ Access control for statistics
+
+ May be used in sections: defaults | frontend | listen | backend
+ no | no | yes | yes
+
+ As "http-request", these set of options allow to fine control access to
+ statistics. Each option may be followed by if/unless and acl.
+ First option with matched condition (or option without condition) is final.
+ For "deny" a 403 error will be returned, for "allow" normal processing is
+ performed, for "auth" a 401/407 error code is returned so the client
+ should be asked to enter a username and password.
+
+ There is no fixed limit to the number of http-request statements per
+ instance.
+
+ See also : "http-request", section 3.4 about userlists and section 7
+ about ACL usage.
+
+
stats realm <realm>
Enable statistics and set authentication realm
May be used in sections : defaults | frontend | listen | backend