# HG changeset patch # User Ruslan Ermilov # Date 1335248494 0 # Node ID 6520338cdf0a4dfa10e708f08130622047ba054d # Parent 3878cc99d454c72a656a1d392a1b8c4d495ae070 Bring ngx_http_referer_module docs up to date, including: - Documented directives "referer_hash_bucket_size" and "referer_hash_max_size". - Fixed "false" value of the $invalid_referer variable, documented "true" value. - Documented that search for a match of valid referers is case-insensitive. diff --git a/xml/en/docs/http/ngx_http_referer_module.xml b/xml/en/docs/http/ngx_http_referer_module.xml --- a/xml/en/docs/http/ngx_http_referer_module.xml +++ b/xml/en/docs/http/ngx_http_referer_module.xml @@ -42,6 +42,38 @@ if ($invalid_referer) {
+ +size +64 +server +location +1.0.5 + + +Sets the bucket size for the valid referers hash tables. +For more information, please refer to +Setting Up Hashes. + + + + + + +size +2048 +server +location +1.0.5 + + +Sets the maximum size of the valid referers hash tables. +For more information, please refer to +Setting Up Hashes. + + + + + none | @@ -56,7 +88,9 @@ if ($invalid_referer) { Specifies values of the
Referer
request header field that will cause the embedded variable $invalid_referer to -be set to 0. +be set to an empty string. +Otherwise, the variable will be set to “1”. +Search for a match is case-insensitive.
@@ -73,7 +107,7 @@ the
Referer
field is mi the
Referer
field is present in the request header, but its value was deleted by a firewall or proxy server; such values are strings that do not start from -“http://”; +“http://” or “https://”; server_names @@ -94,7 +128,8 @@ is ignored; the first symbol should be a “~”. It should be noted that an expression will be matched against -the text starting after the “http://”. +the text starting after the “http://” +or “https://”.