Correct Readme for AuthType-Basic use.

This commit is contained in:
Christoph 2017-07-21 00:35:24 +02:00
parent e613af5262
commit 11bc5c4199

View File

@ -1,14 +1,32 @@
Falls eine Authentifizierung `AuthType Basic` für das Wurzelverzeichnis `DocimentRoot` definiert ist, so muss sichergestellt sein, dass die URI `/.well-known/acme-challenge/` für die Let's Encrypt Server zur Verifizierung während des Zertifizierungsvorgangs **ohne Authentifizierung** erreichbar ist: # - Falls eine Authentifizierung `AuthType Basic` für das Wurzelverzeichnis `DocumentRoot`
# - definiert ist, so muss sichergestellt sein, dass die URI `/.well-known/acme-challenge/`
# - für die Let's Encrypt Server zur Verifizierung während des Zertifizierungsvorgangs
# - **ohne Authentifizierung** erreichbar ist:
<Location /> # - Apache 2.2 style
AuthType Basic # -
AuthName "Authentification required" <Location />
AuthUserFile <path-to-htpasswd-file> AuthType Basic
Require valid-user AuthName "Authentication Required"
# - Allow Let's Encrypt Path AuthUserFile "/var/www/borg.oopen.de/.htpasswd"
# - Require valid-user
SetEnvIf Request_URI ^/.well-known/acme-challenge(.*) allow # - Allow Let's Encrypt Path
Order allow,deny # -
Allow from env=allow SetEnvIf Request_URI ^/.well-known/acme-challenge(.*) allow
Satisfy any Order allow,deny
</Location> Allow from env=allow
Satisfy any
</Location>
# - Apache 2.4
# -
<Location />
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/var/www/borg.oopen.de/.htpasswd"
Require valid-user
# - Allow Let's Encrypt Path
# -
SetEnvIf Request_URI ^/.well-known/acme-challenge(.*) allow
Require env allow
</Location>