iTP Secure WebServer System Administrators Guide (Version 7.5+)
Establishing Alias IP Addresses
NonStop TCP/IP enables you to define alias IP addresses (sometimes also called virtual IP addresses).
For brief instructions about how to define such addresses, see “SCF TCP/IP Configuration”
(page 199). For detailed information about this and other topics related to TCP/IP configuration on
NonStop systems, see the TCP/IP Configuration and Management Manual.
Assigning Servers to Specific IP Addresses
You can limit a server to accept connections on only oneIP address and assign each of multiple
servers running on the same host to a different IP address.
You assign a server to a specific IP address by specifying an Accept directive with the -address
option in the server configuration file (httpd.config).
For example, you could specify the directive
Accept -transport /G/ZTC0 -address 16.11.96.5
in the configuration file of one of two servers, to limit this server to accepting connections only on
IP address 16.11.96.5.
Similarly, you could specify the directive
Accept -transport /G/ZTC0 -address 16.11.96.6
in the configuration file of the other server, to limit this server to accepting connections only over
IP address 16.11.96.6.
You can specify a host name instead of an IP address in an Accept directive by using the
-address option. The host name specified must correspond to a local IP address, and then the
server automatically uses that IP address. For example:
Accept -transport /G/ZTC0 -address www.widgets.com
Again, each of the servers assigned a different IP address is completely independent of the others.
Each has its own configuration file, log files, and content areas.
For further details on the Acceptdirective, see “Accept” (page 198).
Implementing Virtual Hosts for iTP Secure WebServer
Another way to configure a server for multiple-host support is to configure a single server process
intovirtual hosts, with each virtual host checking for requests on a different IP address or port.
Configuring a single server process to support multiple virtual hosts involves:
• Establishing virtual IP addresses, as described in “Establishing Alias IP Addresses” (page 124)
• “Setting Up Virtual Hosts” (page 124)
Setting Up Virtual Hosts
You can cause one iTP Secure WebServer to function as multiple servers by setting up multiple
virtual hosts. Each virtual host can be configured to check for requests on a different IP address or
port and can be mapped to host a specified region on the server.
Create virtual hosts by using the Accept or AcceptSecureTransport directives to associate
specific IP addresses with specific host names or ports. Then associate content regions with these
virtual hosts by using Region directives, using the -host or -port arguments.
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 /* {
124 Configuring the iTP Secure WebServer










