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,9 +1,14 @@
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:
# - Apache 2.2 style
# -
<Location /> <Location />
AuthType Basic AuthType Basic
AuthName "Authentification required" AuthName "Authentication Required"
AuthUserFile <path-to-htpasswd-file> AuthUserFile "/var/www/borg.oopen.de/.htpasswd"
Require valid-user Require valid-user
# - Allow Let's Encrypt Path # - Allow Let's Encrypt Path
# - # -
@ -12,3 +17,16 @@ Falls eine Authentifizierung `AuthType Basic` für das Wurzelverzeichnis `Docime
Allow from env=allow Allow from env=allow
Satisfy any Satisfy any
</Location> </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>