When you use virtual hosting, you use the domain name system (DNS) to specify one or more host names that map to the IP address of a server or cluster. You also specify which Web applications are served by each virtual host. For more information on virtual hosting, see Configuring Virtual Hosting in Configuring Server Environments for Oracle WebLogic Server.
Note:
If you are logged into a domain partition, navigate from the Domain Partition menu.
This chapter includes the following section:
To create a virtual host:
The virtual host you created appears in the Virtual Hosts table.
To configure a virtual host:
On the General page, define the general configuration settings for your new virtual host:
Virtual Host Names - Host names, separated by line breaks, for which this virtual host will serve requests.
Network Access Point Name - Dedicated server channel name (NetworkAccessPoint) for which this virtual host serves HTTP requests.
Click Apply.
For more information on general destination attributes, see General
On the Logging page, click the Log Configuration link to configure the log configuration settings for your new virtual host:
Select HTTP access log file enabled to activate HTTP logging (or deselect the check box to deactivate HTTP logging).
HTTP requests for a virtual host are kept in a log file that is separate from the server's log files.
In Log file name, enter the name of the log file.
To include a time or date stamp in the file name when the log file is rotated, in the Log file name field, add java.text.SimpleDateFormat variables to the file name. Surround each variable with percentage (%) characters.
For example, if you enter the following value in the Log file name field: access_%yyyy%_%MM%_%dd%_%hh%_%mm%.log the virtual host's HTTP log file will be named: access_yyyy_MM_dd_hh_mm.log.
When the server instance rotates the HTTP log file, the rotated file name contains the date stamp.
For example, if the server instance rotates the log file on 2 April, 2003 at 10:05 AM, the log file that contains the old log messages will be named: access_2003_04_02_10_05.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.
For example: access.log00007.
If you want the server to move old HTTP requests to another file when the current HTTP log file reaches a specific size, do the following:
In Rotation type, choose By Size.
If you want the server to move old HTTP requests to another file at specific time intervals, do the following:
In Rotation type, choose By Time.
In Begin rotation time, enter the start time.
At the time that you specify, the server rotates the current log file. If the time that you specify has already past, then the server starts its file rotation immediately. Thereafter, the server rotates the log file at an interval that you specify in Rotation interval. Use the following java.text.SimpleDateFormat format to specify a date and time: MM-DD-yyyy-k:mm:ss.
If you want to limit the number of retained files, select the Limit number of retained files checkbox.
To indicate the maximum number of files to retain, enter the number in the Files to retain checkbox.
Determine the log file rotation directory by entering that directory in the Log file rotation directory field.
If you want to rotate the log file on startup, select the Rotate log file on startup check box.
To change the format of the HTTP log file, in the Advanced options, do the following:
Determine the format of the HTTP log file by selecting Common or Extended from the Format list.
Set up HTTP access logs in the Extended Logging Format Fields.
For information on how to set up the logs, see Setting Up HTTP Access Logs by Using Extended Log Format
Enter the Log File Buffer.
Click Apply.
For more information about these fields, see Logging.
On the HTTP page, define the HTTP configuration settings for your new virtual host:
Post Timeout - Amount of time the server instance waits between receiving HTTP POST data before timing out.
Max Post Time - Maximum time allowed for reading HTTP Post data in a servlet request.
Max Post Size - Maximum post size allowed when reading HTTP Post data in a servlet request.
Enables Keepalives - Indicates if there is a persistent connection to the server.
Duration - Amount of time the server waits before closing an inactive HTTP connection.
HTTPS Duration - Amount of time the server waits before closing an inactive HTTPS connection.
Accept Context Path in Get Real Path - Indicates if the server instance allows inclusion of the context path in the virtual path.
Click Apply.
For more information on HTTP attributes, see HTTP
You can choose the server, multiple servers, or a cluster in your domain on which to deploy a virtual host. You can also reconfigure the deployment targets later if you wish.
To target a virtual host:
For more information about these fields, see Targets.
Use this page to include any additional information that describes the configuration of this virtual host.
For more information about the fields on this page, see Configuration Options