bea.com | products | dev2dev | support | askBEA
 Download Docs   Site Map   Glossary 
Search

Administration Console Online Help

 Previous Next Contents Index  

Virtual Hosts

Virtual hosting allows you to define host names to which servers or clusters respond. When you use virtual hosting you use DNS to specify one or more host names that map to the IP address of a WebLogic Server or cluster and you specify which Web Applications are served by each virtual host.

 


Tasks

Configuring a VirtualHost

  1. Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
  2. Click the Configure a New VirtualHost text link. A dialog displays in the right pane showing the tabs associated with configuring a new VirtualHost.
  3. Enter values in the Name and Virtual Host Names attribute fields, and select a Default Web App from the drop-down list.
  4. 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.
  5. Click the Logging tab to set up logging of HTTP requests. For more information, refer to Specifying HTTP Log File Settings for a Virtual Host. Click Apply to save your changes.
  6. Click the HTTP tab and change the attribute fields or accept the default values as assigned. Click Apply to save your changes.
  7. Restart the server for the Virtual Host to take effect.

Cloning a VirtualHost

  1. Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
  2. 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.
  3. Enter values in the Name and Virtual Host Names attribute fields, and select a Default Web App from the drop-down list.
  4. 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.
  5. Click the Logging tab to set up logging of HTTP requests. For more information, refer to Specifying HTTP Log File Settings for a Virtual Host. Click Apply to save your changes.
  6. Click the HTTP tab and change the attribute fields or accept the default values as assigned. Click Apply to save your changes.

Specifying HTTP Log File Settings for a Virtual Host

  1. Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
  2. Click a VirtualHost.
  3. On the Logging tab, click Enable Logging to activate or deactivate HTTP logging. (If Enable Logging is checked, the HTTP logging will be activated.)
  4. If you have enabled HTTP logging, you can modify the default log-file name. HTTP requests for a virtual host are kept in a log file that is separate from the server's log files.
  5. Determine the format of the HTTP log file by selecting Common or Extended from the Format list.
  6. To determine the frequency with which the server empties the virtual host's HTTP-request buffer and writes the data to the HTTP log file, do the following:
    1. In Log File Buffer KBytes, specify the maximum size (in kilobytes) of the HTTP-request buffer.
    2. In the Log File Flush Secs parameter, specify the interval (in seconds) at which the server checks the size of the HTTP-request buffer. If the buffer has reached the maximum size, the server writes the data to the HTTP log file.
  7. 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:
    1. In Log Rotation Type, choose By Size.
    2. In Max Log File Size KBytes, enter the maximum file size for a log file (in kilobytes). When the log file reaches this size, the server renames the file as FileName.n, where FileName is the name of the HTTP log file and n is a sequential number. After the server renames a file, subsequent messages accumulate in a new file named FileName.
    3. Click Apply.
  8. If you want the server to move old HTTP requests to another file at specific time intervals, do the following:
    1. In Rotation Type, choose By Date.
    2. In Log Rotation Time Begin, enter the start time.
    3. At the time that you specify, the server renames the current log file as FileName.n, where FileName is the name of the HTTP log file and n is a sequential number. Thereafter, the server renames the log file at an interval that you specify in Log Rotation Period Mins. You can create a recurring start time such as "every Monday at 09:00" or a non-recurring start time such as "9 January, 2002, 09:00."

      Use the java.text.SimpleDateFormat format to specify a time. To express hours and minutes, use the H:m format. For information about this format, refer to the J2EE Javadoc.

      If the date that you specify has already past, then the day in week (E in the SimpleDateFormat), hour in day (H), minute in hour (m) and second in minute (s) are used with the current date to recalculate a start time.

    4. In Log Rotation Period Mins, enter the interval (in minutes) at which the server saves old messages to another file.
    5. Click Apply.

Deleting a VirtualHost

  1. Click the VirtualHost node. The VirtualHosts table displays in the right pane showing all the VirtualHosts defined in your domain.
  2. 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.
  3. Click Yes to delete the VirtualHost. The web-server icon under the VirtualHost node is deleted.

Assigning a VirtualHost

  1. 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.
  2. Click the Targetand Deploy tab.
  3. Complete the following steps:
    1. Select one or more targets that you want to assign to the VirtualHost.
    2. Click Apply to save your assignments.

Targeting Web Applications to the Virtual Host.

  1. Click the Web Applications node in the left panel.
  2. Select the Web Application you want to target.
  3. Click the Targets tab in the right panel.
  4. Click the Virtual Hosts tab.
  5. Click a Virtual Host in the available column and use the right arrow button to move the Virtual Host to the chosen column.

Associating a Virtual Host with a Server

  1. Expand the Servers Node in the Left pane.
  2. Select the server with which you would like to associate one or more Virtual Hosts.
  3. Click the Services tab. Click the Virtual Hosts tab.
  4. Select the Virtual Host you wish to associate with the server. Use the arrow to move the selected Virtual Host to the Chosen section of the tab.
  5. Click Apply to confirm your selection.

Removing an Associated Virtual Host

  1. Expand the Servers Node in the Left pane.
  2. Select the server from which you would like to remove one or more associated Virtual Hosts.
  3. Click the Services tab. Click the Virtual Hosts tab.
  4. Select the Virtual Host you wish to associate with the server. Use the arrow to move the selected Virtual Host From the Chosen section of the tab to the Available section.

    Click Apply to confirm your selection.

 

Back to Top Previous Next