NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-73
Virtual Hosts
Virtual Hosts
Assume that a NonStop server has two network names, hp.com, and
internal.hp.com and that NSJSP is required to run applications which use both of
these network names. The applications for both these network names could be
configured to run with the default configuration of NSJSP, which has only one Host
element. However, such a configuration is not flexible enough to separate the two sets
of applications. The use of Virtual Hosts provides the flexibility to define two different
Host elements, each one limited to servicing requests for only one of the networks.
Figure 3-4 illustrates a sample iTP Secure WebServer environment in which a user
accesses different URLs, for example hp.com and internal.hp.com.
The following scenario shows an example of using Virtual Hosts.
In this example, the two URLs are serviced by the same iTP Secure WebServer
environment and the user applications for those URLs are hosted in the same NSJSP
servlet container. The hp.com URL is a public URL and contains user applications that
do not need authentication. The internal.hp.com URL is a private URL and
contains user applications that require authentication. The different types of user
applications need to be segregated so that they can be secured separately. Although
user security can be applied at the individual application level, it is preferable to secure
applications under one secured entity, which is the Host. The virtual hosting feature
enables such a security configuration, which permits the implementation of separate
security constraints for each Host without impacting other Hosts.
Figure 3-4. Virtual Hosting in a Sample iTP Secure WebServer Environment
hp.com
internal.hp.com
iTPSecure
WebServer
HTTP
Requests
Hostforinternal.hp.com
Hostforhp.com
NSJSPServletContainer
Userapplications runningonthehos t
iTPSecureWebServerEnvironment










