iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)

Configuration Directives
iTP Secure WebServer System Administrator’s Guide522659-001
A-49
Region
The file-extension variable specifies the required extension. (Do not include
a period in the value.)
For example, the following command requires that all URLs starting with /G have
the extension .html. If the URL in the request has some other extension, the server
returns an “access denied” error to the browser:
Region /G* {
RequiredFileExtension html
}
The following command requires that all URLs starting with /G have the extension
.html. If the URL in the request has some other extension, the server returns a “file
not found” error to the browser.
Region /G* {
RequiredFileExtension -noexist html
}
The following command requires that any URL referring to a Guardian subvolume
whose name ends in “atp” must have the extension .atp. If the URL in the request
has some other extension, the server returns an “access denied” error to the browser.
Region /G/vol/*atp/* {
RequiredFileExtension atp
}
The following command requires that any URL referring to a Guardian file whose
name ends in “atp” must have the extension .atp. If the URL in the request has some
other extension, the server returns an “access deniederror to the browser.
Region /G/*atp {
RequiredFileExtension atp
}
RequirePassword realm -userfile userfile
The RequirePassword command limits access to clients that provide a valid
user name and password (HTTP basic authentication). realm is a text string
presented when the user’s web client prompts for a user name and password;
userfile is the name of the server file containing the user-name/password
database.
If the web client does not supply a valid user name and password, no additional
commands in the directive are evaluated.
For example, the command in the following directive requires a user name and
password for access to the /private/directory on the server:
Region /private/* {
RequirePassword "Access username" -userfile
/server/passwords
}
The user-name/password database is stored in a simple ASCII file. Lines beginning
with the pound sign (#) are comments and are ignored. User-name/password entries