Changing the default port in WebSphere Application Server

Refer to: http://www.albeesonline.com/blog/2008/08/27/changing-the-default-port-in-websphere-application-server/

Changing the default port in WebSphere Application Server

Sometimes we may need to change the default port of a WebSphere Application Server installation as a security precaution or for some other reasons like for coexisting with another WAS installation on the same machine. Moreover it’s always better to change the default ports in production environments. You can follow the below steps to change the default http port.

1. Logon to your admin console :-) (Obviously this is the first step. When we have such a nice interface available why we need to think some other options?).

2. Click on Servers -> Application servers -> .

3. Click on Ports link under communications, under the Configuration tab. (If you expand the Ports section click on details).

4. Click on the port name you want to change. Here I am changing the default http transport port. So I clicked on WC_defaulthost port.

5. Enter the port number you want to use in port text box. (Please make sure that port is not already used by some one else). Apply and save the changes. After entering the new port the WC_defaulthost will look like the one in the below image.

6. Now click on Environment -> Virtual Hosts. This page would display all the virtual hosts present in the system.

7. Click on default_host.

8. Click on Host Aliases.

9. Click on the port you want to change.

10. Enter the new port number.

Apply and Save the changes to Master Repository. You are done. Restart the server and now the server will start binding to the new port.

猜你喜欢

转载自syc001.iteye.com/blog/1841001