Changes

From Amahi Wiki
Jump to: navigation, search
72 bytes added ,  00:04, 11 August 2011
*Perform the following steps [[Open_Terminal_as_root|as root user]] (change username and password):
{{Code|htpasswd -c -b .htpasswd username password}}
*To add Add additional users, repeat the previous step (('''NOTE:''' the -c option is only needed the first time you create the file for that web application):
{{Code|htpasswd -b .htpasswd username password}}
*Delete a user, do the following:
{{Code|htpasswd -d .htpasswd username}}
*Copy the <code>.htpasswd</code> file to the web application path (i.e. /var/hda/web-apps/appname).
*Create the <code>.htaccess</code> file (change '''appname''' in ''AuthName'' and ''AuthUserFile'' lines; i.e. '''Linfo''' and '''linfo''' respectively):
12,424

edits