Wednesday, November 13, 2013

How to change root context of the server redirect to API Store ?

WSO2 API Manager consists of two separate UIs for API Publishers and API Subscribers.  If the server hosted on a domain as on default ports, URLs of  store and publisher will be as follows.

API Store -
API Publisher -

If the user attempts to access, it will redirect to the API Publisher URL by default. But if you need this root URL to be redirect to API Store instead of the API publisher, we could do it with the following changes.

In "{AM_HOME}/repository/components/plugins" directory contains a bundle called "". Open this jar and find its component.xml resides in 'META-INF' directory. There, you could see 'default-context' has pointed to 'publisher'. You just need to change it to 'store' as follows and update the jar. Then restart the server.

       <description>API Publisher Default Context</description>

Now, if you try to access the root URL of the server, it will redirect to the API Store (


  1. I have spent a lot of the time in different blogs but this is really a unique blog for me. Root Server kaufen

  2. May I ask one question ?

    Wso2 api manager redirects the root directory to the publisher and changes the url from the name of the machine to the ip of the machine. For example, in a vm inside virtualbox
    will be redirected to

    How can I change that ?