- create user/password file:
htpasswd -c /etc/httpd/conf/users pibeta
<passwd>
- configure Apache in access.conf:
#
# Restrict access to pibeta for "resstricted" directory
#
<Directory /home/pibeta/WWW/restricted>
AuthName "restricted"
AuthType Basic
AuthUserFile /etc/httpd/conf/users
require valid-user
</Directory>
- restart Apache
killall -HUP httpd |