Changes

From Amahi Wiki
Jump to: navigation, search
22 bytes added ,  21:03, 10 August 2011
no edit summary
*The <code>htpasswd</code> file will identify user names/passwords (encrypted) and the <code>.htaccess</code> file will contain the code needed to use that file to protect the web application.
#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.
*There are two options for creating the <code>htpasswd</code> and <code>.htaccess</code> files:
{{Code|htpasswd -c .htpasswd USERNAME}}
The <code>htpassword</code>file should contain lines like look similar to this: {{Text|USERNAMEusername:3Ce3F4zRcVf42}}
The file should be owned by apache:apache and have 600 permissions, so copy it over, then, as root:
12,424

edits