Changes

From Amahi Wiki
Jump to: navigation, search
22 bytes added ,  03:20, 13 August 2011
no edit summary
heading =WARNING|
message = This is recommended only for advanced users, proceed with caution.}}
We have a budding feature Would you like to require login to individual webappscontrol which HDA users can access certain web applications? This can be easily done in Amahi 6.
Note - each To use this function, select the web apps section in the apps tab. Expand the desired app may have created a corresponding webappand select the '''Require Login''' check box. It's in If selected, this webapp settings makes it such that the Login Required may be selectedapplication will ask for a user name and a password. The perform the steps below to create the <code>htpasswd</code> file.
If selected, this settings makes it such that the application will ask for a user name and a password. Unfortunately this '''NOTE:''' This is no integrated yet with the rest of the user/password system already in place, so for now, it has to be done using htaccess controls. We have decided to make these a global settingat the moment, i.e. the users and password are all the same to all the apps that require loginhave '''Require Login''' selected.
== How to do it ==
 
*This requires creation of the <code>htpasswd</code>) be placed in the /var/hda/web-apps directory.
*The <code>.htpasswd</code> file will identify user names/passwords (encrypted).
chown apache:apache /var/hda/web-apps/htpasswd}}
==== If you have webmin Webmin installed == After logging into webmin select “Others” on the left-hand side, click on “Protected Web Directories” and then select “Add protection for a new directory”. In “Directory path” browse to/or enter the path to the ‘html’ web directory you wish to protect, in “Authentication realm” enter something like for example “Authentication required” (this will show up on the popup login box) and then click on create.==
*After logging into webmin select “Others” on the left-hand side, click on “Protected Web Directories” and then select “Add protection for a new directory”.*In “Directory path” browse to/or enter the path to the ‘html’ web directory you wish to protect, in “Authentication realm” enter something like for example “Authentication required” (this will show up on the popup login box) and then click on create.*Now you need to setup users to allow login by clicking on “Add a new user” in “Associated users and groups”, when users have been created you should be good to go.
Note'''NOTE: ''' After you have completed this process using webmin you can then select "un-protect selected directory" and use the HDA-Dashboard to enable/disable password protection.
12,424

edits