It is a good idea to secure an access from unauthorized persons. In order to do this
you must take following steps. Create the following file .htaccess
in a directory /home/david/www/htdocs:
AuthGroupFile /etc/httpd/access/group |
AuthUserFile /etc/httpd/access/passwd |
AuthName "DAVID System" |
AuthType Basic |
<Limit GET> |
require group david |
</Limit> |
The file /etc/httpd/access/group contains definitions
of all groups and their users. For example:
david: joe ann mark operator |
While the file /etc/httpd/access/passwd includes encoded
users' passwords, for example:
joe:jdu8ehdp923cW |
ann:iujijm09Cj210 |
mark:inbv30bgtaqPT |
operator:lcyewMwQA74Og |
Further details regarding the Apache configuration you can find at
the Apache website.