VirtualHost
The following procedures describe how to use the Administration Console to configure and manage VirtualHosts. For additional information about VirtualHosts, please see the Administration Guide, Overview of WebLogic Server HTTP Services.
Configure a VirtualHost
- Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
- Click the Configure a New VirtualHost text link. A dialog displays in the right pane showing the tabs associated with configuring a new VirtualHost.
- Enter values in the Name and Virtual Host Names attribute fields, and select a Default Web App from the drop-down list.
- Click the Logging and HTTP tabs individually and change the attribute fields or accept the default values as assigned.
- Click Create to create a web-server instance with the name you specified in the Name field. The new instance is added under the VirtualHost node in the left pane.
- Restart the server for the Virtual Host to take effect.
For additional information about VirtualHosts, please see the Administration Guide, Configuring VirtualHosts.
Clone a VirtualHost
- Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
- Click the Clone icon in the row of the VirtualHost you want to clone. A dialog displays in the right pane showing the tabs associated with cloning a VirtualHost.
- Enter values in the Name and Virtual Host Names attribute fields, and select a Default Web App from the drop-down list.
- Click the Logging and HTTP tabs individually and change the attribute fields or accept the default values as assigned.
- Click Create to create a web-server instance with the name you specified in the Name field. The new instance is added under the VirtualHost node in the left pane.
For additional information about VirtualHosts, please see the Administration Guide, Configuring VirtualHosts.
Delete a VirtualHost
- Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
- Click the Delete icon in the row of the VirtualHost you want to delete. A dialog displays in the right pane asking you to confirm your deletion request.
- Click Yes to delete the VirtualHost. The web-server icon under the VirtualHost node is deleted.
For additional information about VirtualHosts, please see the Administration Guide, Overview of WebLogic Server HTTP Services.
Assign a VirtualHost
- Click the instance node in the left pane for the VirtualHost you want to assign. A dialog displays in the right pane showing the tabs associated with this instance.
- Click the Targets tab.
- Complete the following steps for the Servers and Clusters tabs:
- Select one or more targets in the Available column that you want to assign to the VirtualHost.
- Click the mover control to move the targets you selected to the Chosen column.
- Click Apply to save your assignments.
For additional information about VirtualHosts, please see the Administration Guide, Overview of WebLogic Server HTTP Services.
Target Web Applications to the Virtual Host.
- Click the Web Applications node in the left panel.
- Select the Web Application you want to target.
- Click the Targets tab in the right panel.
- Click the Virtual Hosts tab.
- Click a Virtual Host in the available column and use the right arrow button to move the Virtual Host to the chosen column.
For additional information about VirtualHosts, please see the Administration Guide, Overview of WebLogic Server HTTP Services.
Monitor All Instances of a VirtualHost
- Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
- Click the Monitor All Instances icon in the row of the VirtualHost you want to monitor. A dialog displays in the right pane showing all instances of the VirtualHost deployed across the server domain.
For additional information about VirtualHosts, please see the Administration Guide, Overview of WebLogic Server HTTP Services.
Configuration
General
Attribute
|
Description
|
Range of Values
|
Default Value
|
Name
|
This attribute returns the name of the VirtualHost.
|
String
|
Null
|
Virtual Host Name
|
This attribute returns the host name for which this VirtualHost will serve requests.
|
String
|
Null
|
Default Web Application
|
This attribute sets the name of the default Web application.
|
String
|
Null
|
Logging
Attribute
|
Description
|
Range of Values
|
Default Value
|
Enable Logging
|
This attribute sets whether or not HTTP access logs are generated.
|
Boolean
True = access logs are generated
False = access logs are not generated
|
true
|
LogFile Name
|
If HTTP access logging is enabled, this attribute sets the name of the log file.
|
String
To include a time or date stamp in the file name when the log file is rotated, add java.text.SimpleDateFormat variables. Surround each variable with percentage (%) characters.
For example, access_%yyyy%_%MM%_%dd%_%hh%_%mm%.log
If you do not include a time and date stamp, the rotated log files are numbered in order of creation filenamennnnn, where filename is the name configured for the log file.
|
Null
|
Format
|
If HTTP access logging is enabled, this attribute sets the type of log file.
|
common = uses standard HTTP access log format
extended = uses extended HTTP access log format
|
common
|
Log Buffer Size
|
If the Rotation Type is set to size, this attribute sets the maximum size of the log file, in kilobytes. When the log file reaches this size it rotates.
|
Integer
|
8 Kilobytes
|
Rotation Type
|
This attribute defines whether the HTTP log file is rotated by date or rotated based on the size of the log file.
|
size= log rotates based on its size. You can also override the default value of the Log Buffer Size attribute
date = log rotates based on date. You can also override the default value of the Rotation Period attribute and/or set the Rotation Time attribute.
|
size
|
Rotation Period
|
If the Rotation Type is set to date, this attribute defines the number of minutes after which the access log rotates.
|
Integer
|
2147483647 minutes
|
Flush Every
|
If the Rotation Type is set to date, this attribute sets the number of seconds after which any new data is written to the log file.
|
Integer
|
60 Seconds
|
Rotation Time
|
If the Rotation Type is set to date, this attribute defines the date and time of the first rotation of the access log.
|
The format follows java.text.SimpleDateFormat, MM-dd-yyyy-k:mm:ss
|
|
Maximum Log File Size
|
This attribute allows the user to set the maximum allowed size for the log file.
|
Integer in KBytes
|
|
HTTP
Attribute
|
Description
|
Range of Values
|
Default Value
|
Default Server Name
|
When WebLogic Server redirects a request, it sets the host name returned in the HTTP response header with the string specified with Default Server Name.
Useful when using firewalls or load balancers and you want the redirected request from the browser to reference the same host name that was sent in the original request.
|
String
|
Null
|
Enable Keepalives
|
This attribute sets whether or not HTTP keep-alive is enabled
|
Boolean
True = enabled
False = not enabled
|
Selected
|
Send Server Header
|
If set to false, the server name is not sent with the HTTP response. Useful for wireless applications where there is limited space for headers.
|
Boolean
True = enabled
False = not enabled
|
True
|
Duration
|
The number of seconds that WebLogic Server waits before closing an inactive HTTP connection.
|
Integer
|
30
|
HTTPS Duration
|
The number of seconds that WebLogic Server waits before closing an inactive HTTPS connection.
|
Integer
|
60
|
WAP Enabled
|
When selected, the session ID no longer includes JVM information. This may be necessary when using URL rewriting with WAP devices that limit the size of the URL to 128 characters. Selecting WAP Enabled may affect the use of replicated sessions in a cluster.
|
Enabled
Disabled
|
not Enabled
|
Post Timeout Secs
|
This attribute sets the timeout (in seconds) that WebLogic Server waits between receiving chunks of data in an HTTP POST data. Used to prevent denial-of-service attacks that attempt to overload the server with POST data.
|
Integer
|
0
|
Max Post Time
|
This attribute sets the time (in seconds) that WebLogic Server waits for chunks of data in an HTTP POST data.
|
Integer
|
0
|
Max Post Size
|
This attribute sets the size of the maximum chunks of data in an HTTP POST data.
|
Integer
|
0
|
For more information on setting up HTTP access logs, see the Setting Up HTTP Access Logs section of the WebLogic Server Administration Guide
Targets
Servers
Attribute
|
Description
|
Range of Values
|
Default Value
|
Target Servers
|
This attribute selects which servers this VirtualHost is deployed on.
|
List
|
Null
|
Clusters
Attribute
|
Description
|
Range of Values
|
Default Value
|
Target Clusters
|
This attribute is a list which allows you to select one or more targets for use with this webserver.
|
List
|
Null
|
Notes
Attribute
|
Description
|
Range of Values
|
Default Value
|
Notes
|
This attribute provides a space for optional user-supplied information.
|
The value must be an alphanumeric string containing up to 256 characters.
|
Null
|
For additional information about VirtualHosts, please see the Administration Guide, Configuring VirtualHosts.
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher.
|