1. Create a password file with htpasswd (or httpasswd2):
htpasswd2 -c -m /etc/apache2/apache-passwds your_login_name
2. Extend your Apache config with something like this:
<LocationMatch "/.*">
AuthType Basic
AuthName "Password required"
AuthUserFile /etc/apache2/apache-passwds
Require valid-user
</LocationMatch>
0 comments:
Post a Comment
And Feedback? Please post a comment: