BasicAuthentication with httpd
Page content
Enable Auth
server "default" {
listen on * port 80
authenticate "secure area" with "/htpasswd.conf"
}
create htpasswd file
htpasswd /var/www/htpasswd.conf user-x
Password:
Retype Password:
chown www /var/www/htpasswd.conf
chmod 600 /var/www/htpasswd.conf
Restart Service
rcctl restart httpd
sha256: 152bd33928dbafc599f85b89c0f832fae8c0ac8a3ee957c8694817c4d566f9c9