Thursday, July 28, 2016

Start Multiple WSO2 App Manager Instances on the Same Computer

If you want to run multiple WSO2 App Manager servers on the same machine, you have to change the default ports with an offset value to avoid port conflicts. The default HTTP and HTTPS ports (without offset) of a WSO2 product are 9763 and 9443 respectively.

Here are the steps to offset ports. Let's assume you want to increase all ports by 1.

1.  Set Offset value to 1 in <APPM_HOME>/repository/conf/carbon.xml
2.  Change ports in AssertionConsumerServiceURL of each ServiceProvider  in <APPM_HOME>/repository/conf/identity/sso-idp-config.xml.
3. Change the port of address uri in <APPM_HOME>/repository/deployment/server/synapse-configs/default/proxy-services/WorkflowCallbackService.xml.
 <address uri="https://localhost:9444/store/site/blocks/workflow/workflow-listener/ajax/workflow-listener.jag" format="rest"/>  
4. Change the port of endpoint address in <APPM_HOME>/repository/deployment/server/synapse-configs/default/api/_AuthorizeAPI_.xml
   <address uri="https://localhost:9444/oauth2/authorize"/>   
5. Change  the port of endpoint address in <APPM_HOME>/repository/deployment/server/synapse-configs/default/api/_RevokeAPI_.xml
   <address uri="https://localhost:9444/oauth2/revoke"/>   
6. Change  the port of endpoint address in <APPM_HOME>/repository/deployment/server/synapse-configs/default/api/_TokenAPI_.xml
   <address uri="https://localhost:9444/appmoauth2/token"/>   
7. Start the server.

No comments:

Post a Comment