Directing the Root Context to the Developer Portal¶
WSO2 API Manager includes separate Web applications as the Publisher and the Developer Portal. The root context of the API Manager is set to go to the Publisher by default. For example, assume that the API Manager is hosted on a domain named apis.com
with default ports. The URLs of the Developer Portal and Publisher will be as follows:
- Developer Portal - https://apis.com:9443/devportal
- Publisher - https://apis.com:9443/publisher
If you open the root context, which is https://apis.com:9443 in your browser, it directs to the Publisher by default. You can set this to go to the Developer Portal as follows:
- Open the bundle
<API-M_HOME>/repository/components/plugins/org.wso2.am.styles_3.2.0.jar
. - Open the
component.xml
file that is insideMETA-INF
directory. -
Change the <context-name> element, which points to Publisher by default, to Developer Portal:
<context> <context-id>default-context</context-id> <context-name>devportal</context-name> <protocol>https</protocol> <description>API Publisher Default Context</description> </context>
-
Restart the server.
- Open the default context (https://apis.com:9443) again in a browser and note that it directs to the Developer Portal.
Tip
If you want to configure the Publisher and Developer Portal to pass proxy server requests, configure a reverse proxy server.