2 ------------------------------------
5 ------------------------------------
7 local username
= "admin"
8 local realm
= "authorized users only"
9 local passfile
= "passwd" -- "/etc/lighttpd/.passwd"
11 local cmd
= string.format([[htdigest -c %s '%s' %s]], passfile
, realm
, username
)
15 -- cp passwd /etc/lighttpd/.passwd