iTP Secure WebServer System Administrators Guide (Version 7.5+)

Name Based Virtual Hosts are configured using Region host configuration option.
To enable Name Based Virtual Hosting, you must specify a valid DNS name as a parameter for
Region host. If a DNS name is specified as a parameter for Region host, string
comparisons with the users' Host value would be performed to validate the access.
Syntax:
Region host <hostname> {
<region-options>
}
For example:
Region host hp.com /* {
Filemap / /home/site_data/hp_com
}
Region host nonstop.com /* {
Filemap / /home/site_data/nonstop_com
}
In the above example, the Web server serves different content, based on the hostname used for
accessing the web portal.
For more information about the Region directive, see “Region” (page 232).
Setting Up IP Based Virtual Hosts
IP Based Virtual Hosts can also be configured using the Region host configuration option.
However, users must explicitly provide a specific IP address in the Region host to do so.
For example:
Region host 192.168.0.1 /* {
Filemap / /home/site_data/IP_based_content
}
This configuration allows access whenever a user accesses the website using the IP address
192.168.0.1, as well as any DNS value which maps to the IP address 192.168.0.1.
For more information about the Region directive, see “Region” (page 232).
NOTE: Using more than one type of virtual hosting methods together can result in duplicate
filemap errors.
Customizing Server Error Messages
This subsection describes how to customize the default text of the server-access error messages.
You can customize these messages to include more explanation, to use a different language, or
to suggest a corrective action.
The server comes with a default message for each of the access errors listed in “Server Access
Errors” (page 222). The text of these messages is encoded in HTML and is presented to the user
whenever access errors occur.
For example, the following message (in HTML format) is displayed to the user who attempts to
access an object for which he or she lacks the correct permission:
<TITLE>Forbidden</TITLE><H1>Forbidden</H1>
You do not have permission to get the requestedobject.
To change the text of this or any of the other access error messages, you use this Message
configuration directive:
Message id text
where:
126 Configuring the iTP Secure WebServer