diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index d1dc8682f6..3411bc83d2 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -46,7 +46,7 @@
<If>
<ElseIf>
<Else>
RewriteCond
SetEnvIfExpr
Header
RequestHeader
FilterProvider
SSLRequire
LogMessage
mod_include
<If>
<ElseIf>
<Else>
AuthBasicFake
AuthFormLoginRequiredLocation
AuthFormLoginSuccessLocation
AuthFormLogoutLocation
RewriteCond
SetEnvIfExpr
Header
RequestHeader
FilterProvider
SSLRequire
LogMessage
mod_include
unescape
file
base64
unbase64
sha1
file
filesize
filesize
Description: | Fake basic authentication using the given expressions for +username and password |
---|---|
Syntax: | AuthBasicFake username password |
Default: | none |
Context: | directory, .htaccess |
Override: | AuthConfig |
Status: | Base |
Module: | mod_auth_basic |
The username and password specified are combined into an + Authorization header, which is passed to the server or service + behind the webserver. Both the username and password fields are + interpreted using the expression parser, + which allows both the username and password to be set based on + request parameters.
+ +In this example, we pass a fixed username and password to a + backend server.
+ ++<Location /demo> + AuthBasicFake demo demopass +</Location> ++
In this example, we pass the email address extracted from a client
+ certificate, extending the functionality of the FakeBasicAuth option
+ within the SSLOptions
+ directive. Like the FakeBasicAuth option, the password is set to the
+ fixed string "password".
+<Location /secure> + AuthBasicFake %{SSL_CLIENT_S_DN_Email} password +</Location> ++
Extending the above example, we generate a password by hashing the + email address with a fixed passphrase, and passing the hash to the + backend server. This can be used to gate into legacy systems that do + not support client certificates.
+ ++<Location /secure> + AuthBasicFake %{SSL_CLIENT_S_DN_Email} %{sha1:passphrase-%{SSL_CLIENT_S_DN_Email}} +</Location> ++