apache2_basic_authentication
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
apache2_basic_authentication [2016/11/03 22:01] – xenadmin | apache2_basic_authentication [2016/11/08 22:44] (aktuell) – xenadmin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Apache2 Basic Authentication ====== | ====== Apache2 Basic Authentication ====== | ||
- | Quelle: https:// | + | ===== Quelle |
+ | * https:// | ||
- | - Create user & password hash file with bcrypt encryption for passwords. | + | ===== Setup ===== |
+ | 1. Create user & password hash file with bcrypt encryption for passwords. | ||
<code bash> | <code bash> | ||
htpasswd -B -c / | htpasswd -B -c / | ||
Zeile 9: | Zeile 11: | ||
Adding password for user demo-user | Adding password for user demo-user | ||
</ | </ | ||
- | - Add additional user to existing file. | + | 2. Add additional user to existing file. |
<code bash> | <code bash> | ||
htpasswd -B / | htpasswd -B / | ||
Zeile 16: | Zeile 18: | ||
Adding password for user demo-user2 | Adding password for user demo-user2 | ||
</ | </ | ||
- | - Enable Basic Authentication in Apache2 conf file. | + | 3. Enable Basic Authentication in Apache2 conf file. |
<code apache default.conf> | <code apache default.conf> | ||
< | < |
apache2_basic_authentication.1478210460.txt.gz · Zuletzt geändert: 2016/11/03 22:01 von xenadmin