WSO2 APIM Changing the hostname for web portals

 

Hello WSO2 guys!

In this post, I'll show how can you customise the hostname of the respective web portals of API Manager viz. devportal, publisher portal, carbon console and the admin console.

Below environment I am using for this demonstration-
  • WSO2APIM 3.2.0
  • Ubuntu Linux 18.x

  1. Do hostfile entry in VM by editing the hostfile as vi /etc/hosts
    • 127.0.0.1       api.mydomain.com
  2. First download the WSO2 API Manager from here (I am using v3.2.0) 
  3. Unzip the package as unzip wso2am-3.2.0.zip
  4. Navigate to the bin directory <APIM_HOME>/bin
  5. Start API Manager as ./wso2server.sh
  6. Open the browser and go to https://api.mydomain:9443/carbon & login with default credentials as admin/admin (it works because of hostfile entry)
  7.  
  8. Navigate to the Service providers
  9. If you don't see any provider in the list, then just open two URLs https://localhost:9443/publisher & https://localhost:9443/devportal respectively and refresh the carbon console service provider page. Now you'll see two providers as apim_devportal & apim_publisher
  10. Click on edit for apim_publisher and go to 
    • Inbound Authentication Configuration >OAuth/OpenID Connect Configuration >Edit
    • Go to Section "Callback Url"
    • Change the value of localhost by api.mydomain.com in the entire string
    • Save it
  11. Repeat step 9 for apim_devportal as well
  12. Open the file <APIM_HOME>/repository/conf/deployment.toml
  13. Change the value of hostname with "api.myadomain.com"
  14. Restart the API Manager
  15. Navigate to the URL in your web browser https://api.mydomain.com:9443/publisher, https://api.mydomain.com:9443/devportal & https://api.mydomain.com:9443/carbon to check the functionality with new hostname. 
  16. That's all

 














Comments

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c