en.help.task-virtualservercreate.html Maven / Gradle / Ivy
To Create a Virtual Server
-
In the navigation tree, expand the Configuration node.
-
Select the configuration that you are changing.
-
Under the Configuration node, select the Virtual Servers node.
The Virtual Servers page opens.
-
On the Virtual Servers page, click New.
The New Virtual Server page opens.
-
In the Id field, type a value that will identify the virtual server internally.
This value is not exposed to HTTP clients. The host names that are exposed to HTTP clients must be specified in the Hosts field.
-
In the Hosts field, type the host names or IP addresses for the machine on which the server is running.
Use either actual or virtual host names that are registered with the DNS server for your network (and, on a UNIX system, in your /etc/hosts
file).
The default value is the system property value ${com.sun.aas.hostName}
.
-
Select a State option for the new virtual server.
The virtual server can be On (that is, active), Off, or Disabled. The default value is On.
-
Select an SSO option for the new virtual server.
By default, a virtual server inherits the single sign-on (SSO) setting of the HTTP service. Select Enabled or Disabled to override the HTTP service setting by enabling or disabling single sign-on for this virtual server.
Single sign-on across applications on the GlassFish Server is supported by servlets and JSP files. This feature allows multiple applications that require the same user sign-on information to share this information, rather than have the user sign on separately for each application.
-
From the Network Listeners drop-down list, select one or more network listeners, or leave the field blank.
-
From the Default Web Module drop-down list, select the module that is to respond to all requests that cannot be mapped to other web modules deployed to the virtual server.
If a default web module is not specified, the web module that has an empty context root is used. If there is no web module with an empty context root, a system default web module is created and used.
-
In the Log File field, type the path name of the file where logging messages from this virtual server will appear.
By default, logging messages will be sent to the default server log, domain-dir/logs/server.log
.
-
In the Docroot field, type the absolute path to the root document directory for the server.
If the field is left blank, domain-dir/docroot
will be used.
-
Select an Access Logging option to enable or disable access logging.
Alternatively, you can specify if access logging is inherited from the HTTP Service. By default, it is inherited from the HTTP Service.
-
In the Directory field, type the absolute directory path to the server access logs.
The default value is domain-dir/logs/access
.
-
In the Additional Properties section, specify additional properties for the virtual server.
For information on available properties, see Properties Specific to Virtual Servers.
To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.
-
Click OK.
See Also
Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices