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

Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrators Guide522659-001
7-43
Implementing Multiple-Host Support
For example:
Accept -transport /G/ZTC0 -address www.baygroup.org -port 4986
Region -host www.baygroup.org -port 4986 /* {
Filemap / /groups/baygroup/www
}
AcceptSecureTransport -transport /G/ZTC0 -address www.nerds.org\
-cert {CN=Open Market Test Certificate MCI-1, OU=Open \
Market,O=MCI, C=US} -port 8080
Region -host www.nerds.org -port 8080 /* {
Filemap / /groups/nerds/www
}
You can specify any number of pairings of Accept (or AcceptSecureTransport)
and Region (with -host and -port directives) in any single configuration file. For
further information about the Accept directive, see Accept on page A-2. For further
information about the AcceptSecureTransport directive, see
AcceptSecureTransport on page A-5. For further information about the Region
directive, see Region
on page A-39.
If you are configuring hundreds or even thousands of virtual hosts, you could efficiently
vary the filemap (and any of several other configuration items) for each virtual host by
using the
SERVER_NAME variable, as follows:
Region /* {
Filemap//root/$SERVER_NAME/
}
This Region directive maps the root of each virtual host to its own named directory in
/root.
If you have a host machine configured with 256 individual IP addresses, you can
specify:
Accept -port 80
to accept connections on port 80 for all 256 IP addresses. You could then specify the
following:
Region /* {
Filemap / /root/$SERVER_NAME/
}
to configure a total of 256 virtual hosts, where $SERVER_NAME is the name of the
virtual host (IP address). This is the address over which a request is received as specified
by the -address or -name argument to the Accept directive. See Table 7-2, Region
Directive Variables, on page 7-38.