Changes

From Amahi Wiki
Jump to: navigation, search
51 bytes added ,  02:08, 11 August 2011
*Option 2:
<blockquote>
*Perform the following steps [[Open_Terminal_as_root|as root user]] (change username , password, and passwordappname as appropriate):{{Code|htpasswd -c -b /var/hda/web-apps/appname/.htpasswd username password}}
*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 /var/hda/web-apps/appname/.htpasswd username password}}
*Delete a user, do the following:
{{Code|htpasswd -D /var/hda/web-apps/appname/.htpasswd username}}*Copy Create the <code>.htpasswdhtaccess</code> file to the web application path (i.e. in teh /var/hda/web-apps/appname).*Create the <code>.htaccess</code> file html directory (change '''appname''' in ''AuthName'' and ''AuthUserFile'' lines; i.e. '''Linfo''' and '''linfo''' respectively):
{{Text|AuthName "appname Access"
AuthType Basic
12,424

edits