This discussion is archived
5 Replies Latest reply: Jul 28, 2008 4:11 AM by 843844 RSS

Creating Virtual Hosts in Weblogic 8.1

843844 Newbie
Currently Being Moderated
How to create Virtual Host in WLS 8.1

(i.e) , if i type WWW.myapplication.com, the WLS8.1 should fetch the page........
  • 1. Re: Creating Virtual Hosts in Weblogic 8.1
    843844 Newbie
    Currently Being Moderated
    Use the Administration Console to define a virtual host.

    Create a new Virtual Host.
    Expand the Services node in the left pane. The node expands and displays a list of services.
    Click the virtual hosts node. If any virtual hosts are defined, the node expands and displays a list of virtual hosts.
    Click Create a New Virtual Host in the right pane.
    Enter a name to represent this virtual host.
    Enter the virtual host names, one per line. Only requests matching one of these virtual host names will be handled by the WebLogic Server instance or cluster targeted by this virtual host.
    Click Create.
    Define logging and HTTP parameters:
    (Optional) Click on the Logging tab and fill in HTTP access log attributes (For more information, see Setting Up HTTP Access Logs.)
    Select the HTTP tab and fill in the HTTP Parameters.
    Define the servers that will respond to this virtual host.
    Select the Targets --> Servers tab. You will see a list of available servers.
    Select a server.
    Click Apply.
    Define the clusters that will respond to this virtual host (optional). You must have previously defined a WebLogic Cluster. For more information, see Using WebLogic Server Clusters.
    Select the Targets tab.
    Select the Clusters tab. You will see a list of available clusters.
    Select a cluster.
    Click Apply.
    Target Web Applications to the virtual host.
    Click the Web Applications node in the left panel.
    Select the Web Application you want to target.
    Select the Targets tab in the right panel.
    Select the Virtual Hosts tab.
    Select Virtual Host.
    Click Apply.
    You must add a line naming the virtual host to the etc/hosts file on your server to ensure that the virtual host name can be resolved.
  • 2. Re: Creating Virtual Hosts in Weblogic 8.1
    843844 Newbie
    Currently Being Moderated
    I have done all the configurations as you said, but where is the hosts file and also etc directory
  • 3. Re: Creating Virtual Hosts in Weblogic 8.1
    843844 Newbie
    Currently Being Moderated
    On Windows XP:
    C:\WINDOWS\system32\drivers\etc\hosts
  • 4. Re: Creating Virtual Hosts in Weblogic 8.1
    843844 Newbie
    Currently Being Moderated
    hi arun,

    this swamy, i have configured the virtualhost but i don't how to test

    pls tell me how to test the virtualhost.
  • 5. Re: Creating Virtual Hosts in Weblogic 8.1
    843844 Newbie
    Currently Being Moderated
    Hi lenin,

    Pls tell me how to test the virtual host.......