Export: Unix .htaccess for MacOSX

Attention: if you have Microsoft Windows or Apple Macintosh OS8-9 and would like to have this feature on your system then email us.

This feature is needed for securing access on apache, unix or linux web servers. To secure a directory of a Apache web server you basically need two things: a user/password file and a .htaccess file. You can use Address Office to generate the user file, but currently the .htaccess needs to be created manually.

This is typically done on a per-directory basis, with a directory and all its subdirectories being protected. The directives to create the protected area can be placed in a text file named ".htaccess" in the directory concerned.

To restrict a directory to any user listed in the users file just created, you should create a .htaccess file containing:

AuthName "protected"
AuthType Basic
AuthUserFile /usr/local/etc/httpd/users
require valid-user

The first directive, AuthName, specifies a realm name. Once a user has logged in to a server any other directories that share the same name can be accessed. The AuthType directive defines the authentication protocol. Currently only "Basic" is supported.
AuthUserFile specifies the location of the user file created by Address Office. Make sure that the path is correct and that the web server can read it.
The require directive tells the server about the access limitations. The argument "valid-user" allows any user in the users file although you could as well configure it to allow only some users:

require user admin joe


More Information:
HTAccess Authentication (English)
Apache Authentication (English)
selfhtml (German)