Virtual Hosts Configuration with Weblogic Server
Virtual hosting, which defines a set of host names to which WebLogic Serv...
Go to the admin console, click on servers
click on admin server
Go to the Protocols -> Channel tab → New create Network
Channels
New create Network Channels
Give listen address as localhost, give the listen port as 80.
Leave the external listen address and port bank.
Leave the security part as it is to the default unchecked values.
You will see the below configuration once the channel is
created.
Weblogic server Restart to confirm that the server is using
the default channel and port-80 channel.
Once the network channel is created, go to Environment ->
Virtual hosts
A virtual host is a set of host names to which WebLogic
Server instances
Click on new, give a name to the host alok.weblogic.com
Now click on the virtual host alok.weblogic.com, give the
below values:
Virtual Host Names: alok.weblogic.com
Network Acce...
Click on targets tab, check the admin server.Save the changes
and restart the server.
Host add in Window or Linux
Now we need to modify the windows host file in
C:WINDOWSsystem32driversetc directory and add t...
Now deploy one test application following the below steps:
Application Deployment in Weblogic
- Click on install -> Choose the application from the path
- Click next, check Install ...
Target it to the virtual host
Now access the application using the url:
http://alok.weblogic.com/empxtrack
You should see the welcome page of the applic...
Upcoming SlideShare
Loading in...5
×

Virtual Hosts Configuration with Weblogic Server

1,942

Published on

Virtual Hosts Configuration with Weblogic Server




Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,942
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
88
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Virtual Hosts Configuration with Weblogic Server"

  1. 1. Virtual Hosts Configuration with Weblogic Server Virtual hosting, which defines a set of host names to which WebLogic Server instances (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 server or cluster. When you deploy the application on virtual host, it means you hide the IP address of the servers which are actually going to serve the requests. It can either be targeted to one individual server or the whole cluster. In my example, I have configured a virtual host for the admin server. Below are the steps we need to follow: 1)The first requirement for creating a virtual host is to create a network channel on the admin server. - Go to the admin console, click on servers -> admin server - Go to the Protocols -> Channel tab - Give the name of the channel as port-80, choose the protocol as http. - Give listen address as localhost, give the listen port as 80. Leave the external listen address and port bank. - Enable HTTP tunneling as per your preference. - Leave the security part as it is to the default unchecked values. - You will see the below configuration once the channel is created.
  2. 2. Go to the admin console, click on servers
  3. 3. click on admin server
  4. 4. Go to the Protocols -> Channel tab → New create Network Channels
  5. 5. New create Network Channels
  6. 6. Give listen address as localhost, give the listen port as 80. Leave the external listen address and port bank.
  7. 7. Leave the security part as it is to the default unchecked values.
  8. 8. You will see the below configuration once the channel is created.
  9. 9. Weblogic server Restart to confirm that the server is using the default channel and port-80 channel.
  10. 10. Once the network channel is created, go to Environment -> Virtual hosts
  11. 11. A virtual host is a set of host names to which WebLogic Server instances
  12. 12. Click on new, give a name to the host alok.weblogic.com
  13. 13. Now click on the virtual host alok.weblogic.com, give the below values: Virtual Host Names: alok.weblogic.com Network Access Point Name: port-80
  14. 14. Click on targets tab, check the admin server.Save the changes and restart the server.
  15. 15. Host add in Window or Linux Now we need to modify the windows host file in C:WINDOWSsystem32driversetc directory and add the host name vh.localhost.org which we have specified for the virtual host. Add the below in the file: 127.0.0.1 alok.weblogic.com And in Linux vi /etc/hosts 127.0.0.1 alok.weblogic.com
  16. 16. Now deploy one test application following the below steps:
  17. 17. Application Deployment in Weblogic - Click on install -> Choose the application from the path - Click next, check Install this deployment as an application -> target it to the virtual host (not the server) - Click finish Deployment state should be active.
  18. 18. Target it to the virtual host
  19. 19. Now access the application using the url: http://alok.weblogic.com/empxtrack You should see the welcome page of the application.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×