]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[DOC] fix http-request documentation
authorCyril Bonté <cyril.bonte@free.fr>
Thu, 30 Sep 2010 21:46:30 +0000 (23:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Oct 2010 17:04:32 +0000 (19:04 +0200)
- fix some erroneous keywords for http-request
- stats http-request was not documented

--
Cyril Bonté
(cherry picked from commit 17e07dad5074571c38cbeb92d54a20f83658449d)

doc/configuration.txt

index 04cd5c90eea1986739c5e7921e7aed51e533abd8..95dfbac0dc5a0662d1c736a72d13853e54d880b7 100644 (file)
@@ -964,6 +964,7 @@ srvtimeout                  (deprecated)  X          -         X         X
 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
@@ -2223,7 +2224,7 @@ http-check send-state
 
   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
 
@@ -2233,8 +2234,8 @@ http-request { allow | deny | http-auth [realm <realm>] }
   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
@@ -2255,7 +2256,8 @@ http-request { allow | deny | http-auth [realm <realm>] }
 
         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.
@@ -4743,6 +4745,27 @@ stats hide-version
   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