December 7 2020

Apache Basic Password Protected Directory

.htaccess:
AuthName "Dialog prompt"
AuthType Basic
AuthUserFile /home/username/example.com/.htpasswd
Require valid-user

Auth File:
htpasswd -c /home/username/example.com/.htpasswd user1


Copyright 2021. All rights reserved.

Posted December 7, 2020 by reggie goldman in category "Uncategorized