Changes

From Amahi Wiki
Jump to: navigation, search
1 byte added ,  23:22, 10 August 2011
*Copy the text in ''"This is what your .htaccess file should look like..."'' box and paste it into the <code>.htacess</code> file in the web application html directory (i.e. /var/hda/web-apps/linfo/html).
*Next copy the text from ''"And this is what your .htpasswd file should look like..."'' box and paste it into the <code>.htpasswd</code> file in then web application directory (i.e. /var/hda/web-apps/linfo).
The <code>.htpasswd</code> file should look similar to this:
{{Text|username:3Ce3F4zRcVf42}}
*Proceed to the Set the Permissions section to complete.
</blockquote>
#Perform the following steps [[Open_Terminal_as_root|as root user]]:
{{Code|htpasswd -c -b .htpasswd username password}}
The <code>.htpasswd</code> file should look similar to this: {{Text|username:3Ce3F4zRcVf42}}
*To 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}}
12,424

edits