Changes

From Amahi Wiki
Jump to: navigation, search
16 bytes added ,  23:15, 10 August 2011
#First you need to identify the web application you want to protect and it's physical location (<code>/var/hda/web-app/appname</code>) on your server. For example, the path for '''Linfo''' would be <u>'''/var/hda/web-app/linfo'''</u>.
#Next, you need to decide on the user names/passwords who will have access. This has to be the HDA users credentials that are used to log into the HDA Dashboard.
==== Create the Files ====
*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].
##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 Proceed to [[Require_Login#the Set the Permissions]]section to complete.
#Perform the following steps [[Open_Terminal_as_root|as root user]]:
{{Code|htpasswd -c -b htpasswd username password}}
12,424

edits