apache2_basic_authentication
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | Letzte ÜberarbeitungBeide Seiten der Revision | ||
apache2_basic_authentication [2016/11/03 22:01] – xenadmin | apache2_basic_authentication [2016/11/03 22:01] – xenadmin | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
Quelle: https:// | Quelle: https:// | ||
- | - Create user & password hash file with bcrypt encryption for passwords. | + | 1. Create user & password hash file with bcrypt encryption for passwords. |
<code bash> | <code bash> | ||
htpasswd -B -c / | htpasswd -B -c / | ||
Zeile 9: | Zeile 9: | ||
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 16: | ||
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.txt · Zuletzt geändert: 2016/11/08 22:44 von xenadmin