Langkah 1 :
# apt install apache2 apache2-utils
# cd /var/www/html
# mkdir molavi
# chmod 755 molavi
Langkah 2 :
# cd /var/www/html/molavi
# nano .htaccess
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /var/www/html/molavi/.htpasswd
Require valid-user
# chown www-data:www-data /var/www/html/molavi
Continue reading “Proteksi Directory Pada Web Server Apache”