This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install apache2-utils | |
htpasswd -c /etc/lighttpd/.htpasswd <Username> #Replace <Username>, you will be prompted to enter the password. | |
# Make sure that "mod_auth" is loaded in "server.modules". | |
nano /etc/lighttpd/lighttpd.conf | |
#Add the following to lighttpd.conf. | |
auth.backend = "htpasswd" | |
auth.backend.htpasswd.userfile= "/etc/lighttpd/.htpasswd" |