Wednesday 15 August 2012

Change hostname of weblogic server

If you change the host name of the server that runs your weblogic server, then connecting to a page in the weblogic server (/console, /em, etc) may cause page load errors.
When installing the weblogic server, it registers the current hostname as the name of the server in the domain config. It will do a URL-rewrite to that hostname when connecting to a webapplications.

To change the weblogic-hostname, go to config folder of the domain home and edit the config.xml.
under //server/web-server/frontend-host you find the host that is used for the url rewrite. Edit it according to your hostname settings:
<?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="" xmlns:sec="" xmlns:wls="" xmlns:xsi="" xsi:schemaLocation="">


Anonymous said...

There is no "frontend-host" entry in the xml file. It is in wlserver i believe

Anonymous said...

This maybe the case when FrontEnd host hasn't been set yet. If it is set, it will be saved in the config.xml.