![](/img/trans.png)
[英]WSO2 API Manager - “Make this the default version” causes authentication errors?
[英]WSO2 API Manager - Make the API Store Default Component
我正在使用WSO2 API Manager 1.8,並且已根據本指南使用HAProxy將其部署在雲中。 我已獲得一個IP https://192.168.X.XYZ
來訪問API管理器,這是分配給雲實例的IP。
我的問題是當我輸入https://192.168.X.XYZ
,它將加載發布者,我要做的是加載API存儲而不是加載發布者。 基本思想是將域映射到上述IP地址。 因此,當用戶鍵入用戶時,應向域用戶顯示API商店而不是API發布者。
https://192.168.X.XYZ
> https://myapistore.com
如何在WSO2 API Manager 1.8中配置要加載的API存儲而不是要加載的API Publisher?
在<AM_HOME>/repository/components/plugins
目錄中,有一個名為“ org.wso2.am.styles_1.xxjar”的捆綁軟件。 打開此jar並找到其位於META-INF
目錄中的component.xml
文件。 您應注意, default-context
已指向publisher
。 將其更改為如下store
並更新jar。
<context>
<context-id>default-context</context-id>
<context-name>store</context-name>
<protocol>http</protocol>
<description>API Publisher Default Context</description>
</context>
完成上述操作后,重新啟動服務器。
現在,如果您嘗試訪問服務器https://192.168.X.XYZ的根URL,它將被重定向到API Store( https://192.168.X.XYZ/store/ )。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.