Changes

From Amahi Wiki
Jump to: navigation, search
3 bytes added ,  23:21, 10 August 2011
*There are two options for creating the <code>.htpasswd</code> and <code>.htaccess</code> files:
#Navigate to [http://www.webmaster-toolkit.com/htaccess-generator.shtml .htaccess Generator].
<blockquote>*Enter desired Username, Password, and Path (physical location where <code>.htpasswd</code> will be stored). For example, Username '''''amahi''''', Password '''''amahi''''', and Path '''''/var/hda/web-apps/linfo'''''.
*Select the '''Generate .htaccess''' button.
*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).
*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}}
12,424

edits