diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-11-10 17:15:50 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-11-10 17:15:50 +0200 |
commit | 77740b7e6995bfddd6b28b4650d70e27e5669ce9 (patch) | |
tree | 1d075b56c6b242976beed5f33d0c69dd16701e59 | |
parent | de84fe24a3335d22ffde5cdd15a93472812505e2 (diff) | |
download | vmod-basicauth-77740b7e6995bfddd6b28b4650d70e27e5669ce9.tar.gz vmod-basicauth-77740b7e6995bfddd6b28b4650d70e27e5669ce9.tar.bz2 |
Update manpage
-rw-r--r-- | src/vmod-basicauth.3 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vmod-basicauth.3 b/src/vmod-basicauth.3 index 91236f3..58e4331 100644 --- a/src/vmod-basicauth.3 +++ b/src/vmod-basicauth.3 @@ -15,3 +15,3 @@ .\" along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>. -.TH VMOD-BASICAUTH 1 "November 1, 2014" "VMOD-BASICAUTH" "User Reference" +.TH VMOD-BASICAUTH 1 "November 10, 2014" "VMOD-BASICAUTH" "User Reference" .SH NAME @@ -42,3 +42,3 @@ is the authentication string (normally, the value of the .PP -.SS Example +.SS Example: VCL 3.0 .PP @@ -49,2 +49,9 @@ if (!basicauth.match("/var/www/.htpasswd", req.http.Authorization)) { .EE +.SS Example: VCL 4.0 +.PP +.EX +if (!basicauth.match("/var/www/.htpasswd", req.http.Authorization)) { + return (synth(401, "Restricted")); +} +.EE .\" The MANCGI variable is set by man.cgi script on Ulysses. |