How to Setup Load Balancer URL for WebLogic Admin Console Login

On request of Mahesh and Anji, I just documented the steps what can be used in a most simple way, to Setup Load Balancer URL for WebLogic Admin Console Login.

When the Administration Console is accessed using a load balancing router (LBR), it is required to change the Administration Server’s frontend URL, so that the user’s web browser is redirected to the appropriate LBR address.

Step by Step Instruction

Log in to WebLogic Admin Console > Click Lock and Edit > Domain Structure > Environment > Servers

The Summary of Servers page is displayed > Select Admin Server = Settings page for AdminServer(admin) is displayed.

Click on Protocol > Click the HTTP tab > Set the Front End Host field to weblogic.example.com (LBR address) > Save and activate the changes.

I have depicted the steps in 3 simple screenshots as well:

WebLogic Admin Console Login Page

WebLogic Console - Click on Lock and Edit

WebLogic Console - Update HTTP FrontEnd Host

Technical Short Note on “Frontend Host”

The name of the host to which all redirected URLs will be sent. If specified, WebLogic Server will use this value rather than the one in the HOST header.
Sets the HTTP frontendHost Provides a method to ensure that the webapp will always have the correct HOST information, even when the request is coming through a firewall or a proxy. If this parameter is configured, the HOST header will be ignored and the information in this parameter will be used in its place.

MBean Attribute for “Frontend Host”

WebServerMBean.FrontendHost
You can use this Mbean to change the same using WLST as well, in another post I would try to cover this as well.

Node on the Load Balancer Part:
The Load Balancer URL shall redirect the HTTP/HTTPS requested to the WebLogic Admin Server at Port 7001 (or whatever port you are using for the admin server)

How to Eliminate Redirection

To eliminate redirections, it is recommended to disable the Administration Console’s “Follow changes” feature. To do this, log in to the Administration Console, click Preferences and then Shared Preferences. Clear the ‘Follow Configuration Changes’ check box, and click Save.

Note: You can also achieve this using MOD WLS and HTTP Server Configuration. I shall write about that also in future.

Leave a comment