From: Rich Bowen Date: Sat, 28 May 2016 14:37:43 +0000 (+0000) Subject: Make this example actually, y'know, work. X-Git-Tag: 2.5.0-alpha~1558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c27ab06b07aa14f181c52098019098dca9b65726;p=thirdparty%2Fapache%2Fhttpd.git Make this example actually, y'know, work. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745878 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_auth_form.xml b/docs/manual/mod/mod_auth_form.xml index a5004a5a608..465e73f0ed5 100644 --- a/docs/manual/mod/mod_auth_form.xml +++ b/docs/manual/mod/mod_auth_form.xml @@ -81,9 +81,9 @@ AuthType form AuthName "/admin" AuthFormLoginRequiredLocation "http://example.com/login.html" + Session On SessionCookieName session path=/ - SessionCryptoPassphrase secret Require valid-user @@ -96,13 +96,17 @@ AuthUserFile specify that usernames and passwords should be checked against the chosen file.

-

The directives Session, - SessionCookieName and - SessionCryptoPassphrase create an - encrypted session stored within an HTTP cookie on the browser. For more information +

The directives Session and + SessionCookieName + session stored within an HTTP cookie on the browser. For more information on the different options for configuring a session, read the documentation for mod_session.

+

You can optionally add a + SessionCryptoPassphrase to + create an encrypted session cookie. This required the additional + module mod_session_crypto be loaded.

+

In the simple example above, a URL has been protected by mod_auth_form, but the user has yet to be given an opportunity to enter their username and password. Options for doing so include providing a @@ -144,10 +148,9 @@ AuthFormProvider file AuthUserFile "conf/passwd" AuthType form - AuthName realm + AuthName /admin Session On SessionCookieName session path=/ - SessionCryptoPassphrase secret </Location> @@ -212,7 +215,6 @@ AuthName realm AuthFormLoginRequiredLocation "http://example.com/login.html" Session On SessionCookieName session path=/ -SessionCryptoPassphrase secret @@ -311,7 +313,6 @@ AuthName realm AuthFormLogoutLocation "http://example.com/loggedout.html" Session On SessionCookieName session path=/ -SessionCryptoPassphrase secret @@ -330,7 +331,6 @@ AuthFormLogoutLocation "http://example.com/loggedout.html" Session On SessionMaxAge 1 SessionCookieName session path=/ -SessionCryptoPassphrase secret