- Move to the folder where we retain the .htpasswd file (and hence want to protect)
- Create or overwrite the .htpasswd file (in this case the user zephir exists already):
- Reboot your browser and you should be challenged again for passwd
# htpasswd -c .htpasswd zephir
New password:
Re-type new password:
Adding password for user zephir
# apachectl restart or service httpd restart or systemctl restart httpd.service
No comments:
Post a Comment