Basic authentication
Back
Creating a password file
To use Basic authentication, you need to create a password file for it. The esepasswd command can be used to create a password file. For example, to create users named 'foo' and 'bar', type
$ /usr/local/sbin/esepasswd -c /usr/local/lib/esehttpd/conf/password foo
New password:********
Re-type new password:********
$ /usr/local/sbin/esepasswd /usr/local/lib/esehttpd/conf/password bar
New password:********
Re-type new password:********
. The '-c' commandline option tells esepasswd to create the password file if it does not exist. The maximum length of passwords is 8 characters.
Modifying the configuration file
You need to add the following lines to the configuration file.
<Directory /usr/local/lib/esehttpd/www/html/baz/>
AuthUserFile /usr/local/lib/esehttpd/conf/password
AuthName "TEST"
Require user foo
</Directory>
The 'Require' line indicates that only 'foo' can access the contents of the directory. For more detail about the syntax, see List of Directives.
Back
Akira Higuchi