Meine kleine Dokumentation

Die Installationsdokumentation zu MeineKleineFarm.net

Benutzer-Werkzeuge

Webseiten-Werkzeuge


apache2_basic_authentication

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
apache2_basic_authentication [2016/11/03 15:59] – angelegt xenadminapache2_basic_authentication [2016/11/03 22:01] xenadmin
Zeile 1: Zeile 1:
 ====== Apache2 Basic Authentication ====== ====== Apache2 Basic Authentication ======
 Quelle: https://httpd.apache.org/docs/current/howto/auth.html Quelle: https://httpd.apache.org/docs/current/howto/auth.html
-FIXME 
-<code bash> 
  
 +1. Create user & password hash file with bcrypt encryption for passwords.
 +<code bash>
 +htpasswd -B -c /etc/apache2/.htpasswd demo-user
 +New password:
 +Re-type new password:
 +Adding password for user demo-user
 +</code>
 +2. Add additional user to existing file.
 +<code bash>
 +htpasswd -B /etc/apache2/.htpasswd demo-user2
 +New password:
 +Re-type new password:
 +Adding password for user demo-user2
 +</code>
 +3. Enable Basic Authentication in Apache2 conf file.
 +<code apache default.conf>
 +<Directory /var/www/html/example.org/>
 +     AuthType Basic
 +     AuthName "Basic Authentication"
 +     AuthUserFile /etc/apache2/.htpasswd
 +     Require valid-user
 +</Directory>
 </code> </code>
apache2_basic_authentication.txt · Zuletzt geändert: 2016/11/08 22:44 von xenadmin