What is Virtual Host in Weblogic , how to create it & what
is the advantage ?
Answer Posted / kisu
You must be aware that a network channel is like a network
connection in weblogic. A network channel is a unique
combination of listen address, listen port, and protocol.
In order to create a virtual host you first need to created
a network channel.
Go to console -> left pane -> wl_server -> Environemnt -
>servers
-> Click Local & Edit
Right pane:
-> Go to 'exampleServer' -> protocols -> channels
-> Click on Lock & Edit
-> Click New
-> Enter following details for channel.
Name="mychannel", protocol=http
Listen address = 127.0.0.1, Listen Port = 7003,
Leave External Listen address and Leave External Listen
Port blank
-> Click on 'Finish'
-> Save changes
-> Activate changes
Note: After this step you have created a network channel.
That means your server
will listen at given listening address and port. Try
accessing http://127.0.0.1:7003
Step 2. Create new virtual host
Go to console -> left pane -> wl_server -> environement ->
virtual hosts
-> Click lock & edit
Right pane :
-> Click on New
-> Enter Name 'myvh'
-> save changes
-> Activate changes
Note: After this step a virtual host is created. It does
not mean anything unless you configure the virtual host as
shown in the next step.
Step 3: Configure virtual host
Go to console -> left pane -> wl_server -> environement ->
virtual hosts
-> Click lock & edit
Right pane:
-> Click on 'myvh' virtual host link in the 'Virtual Hosts'
table.
-> Enter 'myvh.oracle.com' in the 'Virtual Host Names' text
box.
-> Enter 'mychannel' in the 'Network Access Point Name'
text box.
-> Save changes.
-> Click on 'Targets' tab.
-> Select 'exampleServer' in the 'servers' section.
-> Save changes.
-> Activate changes
Step 4. Deploy application to virtual host
Go to Console -> left pane -> wl_server -> deployments
-> Click lock & edit
Right pane:
-> Click on 'Install'
-> Click on "upload your files" link
-> Click "browse" (against 'deployment archive' )
-> select "sample.war"
-> Click "Next"
-> Choose 'sample.war' in the "location" section
-> Choose "Install this deployment as an application" radio
button
-> Click on "deployment targets" tab
-> select 'myvh' -> Next -> Next -> Finish
-> Save changes
-> Activate changes
Step 5. Create DNS entry in your hosts file.
For linux hosts file is: /etc/hosts Append the following
line to the file as super user.
127.0.0.1 myvh.oracle.com
Save the changes to 'hosts' file.
Note: Just saving the changes to 'hosts' file is enough to
activate the DNS entry.
Step 6. Start the application.
Go to Console -> left pane -> wl_server -> deployments ->
Right pane:
-> Select 'sample.war'.
-> click on 'Start'.
-> Complete the start process
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In web logic how are new threads assigned?
What is meant by domain, adminserver, managedserver?
What Is The Purpose Of Clustering ?
Can I use the getattribute() and setattribute() methods of version 2.2 of the java servlet api to parse xml documents? : BEA Weblogic
How do I look up an ora sqlexception? : BEA Weblogic
What is non-stage deployment?
What is meant by gc, prallel gc, full gc and explain it?
What is the max amount of information that can be saved in a session object?
How does a file store compare with a jdbc store? : BEA Weblogic
Difference between multicast and unicast?
What is the default thread stack size in windows?
What is the local interface used by web logic server?
What is thread stack size? What is the default thread stack size in windows? Which memory space does thread stack get allocated from?
What is the difference between the sun jvm and bea jrockit jvm?
Why is there no polymorphic-type response from a create() or find() method? : BEA Weblogic