Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In App server, the web application of admin is accessible through http://localhost:port/webappname and web application of tenant is accessible through http://localhost:port/webapps/t/tenant_domain/webappnameInstead of going through this long URL process, the URL Mapping feature provides a way to access your hosted web application with a shorter URL like https://appid.localhost:port in standalone products. If your Application server is fronted with load balacher, then depending on the port of Load balancher https://appid.localhost can be used.      
For example, if the actual URL of an application is http://appserver.stratoslive.wso2.com/t/tenant.com/webapps/example, after URL mapping, you get a shorter URL as http://exampleapp.wso2.com. If the App ID is exampleapp, then the custom mapping will be 'exampleapp.wso2.com' where the suffix 'wso2.com' can be changed by editing the file, <PRODUCT_HOME>/repository/conf/etc/url-mappings.xml.

The URL mapping functionality is bundled by default in the WSO2 Application Server. If it is not included in the WSO2 product you are using, you can install it using the instructions provided in section Feature Management. Once installed, the necessary menus will appear in the product's management console.

 To get a URL mapping, first, an 'appid' has to be created through the application's dashboard. Once done, you get a domain for your hosted application:
https://localhost:port/webapps/t/tenant_domain/webappname => https://appid.localhost:port

...