User guide

Chapter 3: Authentication and Access Control for the Interstage HTTP Server
3-6
Editing the Environment Definition File
To allow the users whose password has been registered in the password file to access directories under
a specified directory, use the following directives in the environment definition file (httpd.conf) of
Interstage HTTP Server. By doing this, names and passwords of users who make access requests from
Web browsers are checked and any access attempts from users whose names and passwords have not
been registered in the password file are rejected.
Example
To allow the users whose names and passwords have been registered in the password file
"C:\Interstage\F3FMihs\conf\password.txt" to access directories under a specified directory
"C:\Interstage\F3FMihs\htdocs\users\name":
# Directory
<Directory "C:/Interstage/F3FMihs/htdocs/users/name">
# Password file
AuthUserFile "C:/Interstage/F3FMihs/conf/password.txt"
# Title displayed on the authentication window
AuthName "Secret directory"
# Type of authentication
AuthType Basic
# Rule to be applied for user authentication
Require valid-user
</Directory>
Example
To allow the users whose names and passwords have been registered in the password file
"/opt/FJSVihs/conf/password.txt" to access directories under a specified directory
"/opt/FJSVihs/htdocs/users/name":
# Directory
<Directory "/opt/FJSVihs/htdocs/users/name">
# Password file
AuthUserFile "/opt/FJSVihs/conf/password.txt"
# Title displayed on the authentication window
AuthName "Secret directory"
# Type of authentication
AuthType Basic
# Rule to be applied for user authentication
Require valid-user
</Directory>
Note
When user authentication is set for the Servlet service application URL, the <Directory> section of the
above example cannot be used. Use the <Location> section.