From 676f6224ac3ea237c94c528b6883838a0a438f39 Mon Sep 17 00:00:00 2001 From: Jarno Huuskonen Date: Thu, 30 Mar 2017 09:19:45 +0300 Subject: [PATCH] DOC: fix parenthesis and add missing "Example" tags - urlp_val had unbalanced parenthesis / square brackets - src_clr_gpc0,src_inc_gpc0,sc2_clr_gpc0,sc2_inc_gpc0,ssl_c_sha1 had examples not tagged as such. --- doc/configuration.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 09aaf1d0c..0ba2b02de 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -13383,6 +13383,7 @@ sc2_clr_gpc0([]) : integer typically used as a second ACL in an expression in order to mark a connection when a first ACL was verified : + Example: # block if 5 consecutive requests continue to come faster than 10 sess # per second, and reset the counter as soon as the traffic slows down. acl abuse sc0_http_req_rate gt 10 @@ -13483,6 +13484,7 @@ sc2_inc_gpc0([
]) : integer return 1. This is typically used as a second ACL in an expression in order to mark a connection when a first ACL was verified : + Example: acl abuse sc0_http_req_rate gt 10 acl kill sc0_inc_gpc0 gt 0 tcp-request connection reject if abuse kill @@ -13585,6 +13587,7 @@ src_clr_gpc0([
]) : integer second ACL in an expression in order to mark a connection when a first ACL was verified : + Example: # block if 5 consecutive requests continue to come faster than 10 sess # per second, and reset the counter as soon as the traffic slows down. acl abuse src_http_req_rate gt 10 @@ -13667,6 +13670,7 @@ src_inc_gpc0([
]) : integer This is typically used as a second ACL in an expression in order to mark a connection when a first ACL was verified : + Example: acl abuse src_http_req_rate gt 10 acl kill src_inc_gpc0 gt 0 tcp-request connection reject if abuse kill @@ -13870,6 +13874,7 @@ ssl_c_sha1 : binary Note that the output is binary, so if you want to pass that signature to the server, you need to encode it in hex or base64, such as in the example below: + Example: http-request set-header X-SSL-Client-SHA1 %[ssl_c_sha1,hex] ssl_c_sig_alg : string @@ -14833,7 +14838,7 @@ url_param([[,]]) : string # match http://example.com/foo;JSESSIONID=some_id stick on urlp(JSESSIONID,;) -urlp_val([[,])] : integer +urlp_val([[,]]) : integer See "urlp" above. This one extracts the URL parameter in the request and converts it to an integer value. This can be used for session stickiness based on a user ID for example, or with ACLs to match a page number or price.