The default URL of WSO2 API Manager Store is
https://<HostName>:9443/store.You can change the URL of the Gateways and API Store tenants in WSO2 API Manager as follows:
Install Nginx and create SSL certificates
Follow the steps below to install Nginx and create SSL certificates
Run the following command and install Nginx if not already installed.
Create an SSL certificate.
Go to <APIM_HOME>/repository/resources/security and use the following command to add the certificate to the client trust store.
Open /etc/nginx/sites-enabled/default in your terminal and add the following configurations with your custom domain name.
Install nginx in Mac OS
If you are using Mac OS, you need to install nginx using brew package manager. The commands are as follows.
- Command to install nginx
brew install nginx
- Command to run nginx
Setup custom domain mapping in the registry
Log in to the management console as (
https://<HostName>:9443/carbon) as admin (or tenant admin).
- In the Main menu, click Browse under Resources.
Navigate to /_system/governance registry path and create the following directory structure in the registry.
In API Cloud this directory structure is created automatically when you are specifying the custom URL through UI.
To create a directory in the registry path,
1. navigate to the location in the registry browser, click and open the location.
2. Click Add Collection and specify the name of the directory and click Add.
/_system/governance/customurl/api-cloud/<tenant-id>/urlMapping/<tenant-id>. Click Add Resources under Entries and select Create Text Content.
Add the following resource configurations to the registry and click Add.
Configure the store webapp
<APIM_HOME>/repository/deployment/server/jaggeryapps/store/site/confdirectory, open the
site.jsonfile and add the tenant header parameter as shown below.
You can choose any name for the header and set the virtual host to create the specific domain.