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

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
apache2_basic_authentication [2016/11/03 22:00] xenadminapache2_basic_authentication [2016/11/08 22:44] (aktuell) xenadmin
Zeile 1: Zeile 1:
 ====== Apache2 Basic Authentication ====== ====== Apache2 Basic Authentication ======
-Quellehttps://httpd.apache.org/docs/current/howto/auth.html +===== Quelle ===== 
- +  * https://httpd.apache.org/docs/current/howto/auth.html
-Create user & password hash file with bcrypt encryption for passwords.+
  
 +===== Setup =====
 +1. Create user & password hash file with bcrypt encryption for passwords.
 +<code bash>
 htpasswd -B -c /etc/apache2/.htpasswd demo-user htpasswd -B -c /etc/apache2/.htpasswd demo-user
 New password: New password:
Zeile 9: Zeile 11:
 Adding password for user demo-user Adding password for user demo-user
 </code> </code>
-Add additional user to existing file.+2. Add additional user to existing file.
 <code bash> <code bash>
 htpasswd -B /etc/apache2/.htpasswd demo-user2 htpasswd -B /etc/apache2/.htpasswd demo-user2
Zeile 16: Zeile 18:
 Adding password for user demo-user2 Adding password for user demo-user2
 </code> </code>
-Enable Basic Authentication in Apache2 conf file.+3. Enable Basic Authentication in Apache2 conf file.
 <code apache default.conf> <code apache default.conf>
 <Directory /var/www/html/example.org/> <Directory /var/www/html/example.org/>
apache2_basic_authentication.1478210411.txt.gz · Zuletzt geändert: 2016/11/03 22:00 von xenadmin