]> granicus.if.org Git - apache/commitdiff
The example doesn't do anything at all without a Require directive,
authorRich Bowen <rbowen@apache.org>
Sat, 28 May 2016 14:20:39 +0000 (14:20 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 28 May 2016 14:20:39 +0000 (14:20 +0000)
which is very confusing.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745877 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_auth_form.xml

index 6330d6b339a3c761e5994fdac424f6101e17fe7f..a5004a5a6084d5018f8aa8a3c18a047a8f217bd8 100644 (file)
 
       <example><title>Basic example</title>
       <highlight language="config">
-AuthFormProvider file
-AuthUserFile "conf/passwd"
-AuthType form
-AuthName realm
-AuthFormLoginRequiredLocation "http://example.com/login.html"
-Session On
-SessionCookieName session path=/
-SessionCryptoPassphrase secret
+<Location "/admin">
+    AuthFormProvider file
+    AuthUserFile "conf/passwd"
+    AuthType form
+    AuthName "/admin"
+    AuthFormLoginRequiredLocation "http://example.com/login.html"
+    Session On
+    SessionCookieName session path=/
+    SessionCryptoPassphrase secret
+
+    Require valid-user
+</Location>
         </highlight>
       </example>