Hello,
Login to you master via SSH as root and do the following:
Now create the password file:Code:root@server01[~]#mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd_moved.conf root@server01[~]#wget http://winlinuxadmins.com/mystuff/lighttpd-master_auth.conf -O /etc/lighttpd/lighttpd.conf
Now create a username and password:Code:root@server01[~]#touch /usr/local/lighttpd/htpasswd root@server01[~]#chown apache:apache /usr/local/lighttpd/htpasswd
Then restart lighttpd:Code:root@server01[~]#htpasswd -m /usr/local/lighttpd/htpasswd <USERNAME>
If you have problems and want to restore back to the original do the following:Code:root@server01[~]#service lighttpd restart
Regards,Code:root@server01[~]#mv /etc/lighttpd/lighttpd_moved.conf /etc/lighttpd/lighttpd.conf root@server01[~]#service lighttpd restart
Silvester J.


Reply With Quote