Sunday, 6 March 2016

Configure Test Environment URL in Websphere Commerce

In your project there could be a requirement to change the URL of existing test environment application / Or if it is the first time you are trying to configure a URL for websphere application. The url changes can be done in WAS admin console. But there are some more settings needed to be done based on your webserver type and if it is hosted locally or in a different machine. The webserver example that I have used below here is an IIS server hosted in different machine.

1. First make the necessary host name / port number changes in WAS admin console.
For ex: You might need your host name to look like www.test1.com. So accordingly you can add the entry in virtual hosts of deployment manager.
Got to -> WAS admin console -> Environment -> Virtual Hosts -> click on the virtual host of your environment -> Under Additional Properties, click Host Aliases.-> New -> Give the new host name for port number 80 and 443. -> Save.
Now this change has to be updated to the webserver plugin file. And this can be done by update plugin option just below the Virtual Hosts option. Click on it.

This option updates the plugin-cfg.xml file present in the path F:\IBM\WebSphere\AppServer\profiles\testProfile\config\cells\plugin-cfg.xml. (The path may vary based on your WCS installation path)

See the below note highlighted in red carefully - 

So this means if your IIS server is hosted in different machine then you need to copy the plugin XML change to the IIS server.
So copy the xml file from  F:\IBM\WebSphere\AppServer\profiles\...\config\cells\ path to ex: E:\Program Files\IBM\WebSphere\Plugins\config\webserver1 based on your webserver installation path.

And you will be able to hit the environment with your new URL!

More info : - http://www-01.ibm.com/support/docview.wss?uid=swg21216587