Changes

From Amahi Wiki
Jump to: navigation, search
22 bytes added ,  23:13, 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>.htpassword</code> file in then web application directory (i.e. /var/hda/web-apps/linfo).
##All that is left now is to [[Require_Login#Set the Permissions]].
#Perform the following steps [[Open_Terminal_as_root|as root user]]:
{{Code|htpasswd -c -b htpasswd username password}}
{{Text|username:3Ce3F4zRcVf42}}
* ==== Set the file permissions:====
{{Code|cp htpasswd /var/hda/web-apps/appname/htpasswd
chmod 600 /var/hda/web-apps/appname/htpasswd
chown apache:apache /var/hda/web-apps/appname/htpasswd}}
12,424

edits