2017-07-26 75 views
0

我使用靜態IP地址將WSO2 API管理器託管到我的虛擬機中。WSO2 API管理器,新的網關端點不在使用

我可以通過輸入這些地址打開我的碳,出版商和商店頁面:

https://my.ip.address:9443/publisher 
https://my.ip.address:9443/store 
https://my.ip.address:9443/carbon 

當我加入我的API在我的出版商頁面,它172.x.x.x.x地址是僅供內部使用創建端點。

所以爲了有機會獲得我的終點之外我在寫這幾行我\wso2\wso2am-2.1.0\repository\conf\api-manager.xmlAPIGateway

<APIGateway> 
    <Environments> 
     <Environment type="hybrid" api-console="true"> 
      <Name>Production and Sandbox</Name> 
      <Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description> 
      <!-- Server URL of the API gateway --> 
      <ServerURL>https://localhost:${mgt.transport.https.port}${carbon.context}services/</ServerURL> 
      <!-- Admin username for the API gateway. --> 
      <Username>${admin.username}</Username> 
      <!-- Admin password for the API gateway.--> 
      <Password>${admin.password}</Password> 
      <!-- Endpoint URLs for the APIs hosted in this API gateway.--> 
      <GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port},http//my.ip.address:${http.nio.port},https://my.ip.address:${https.nio.port}</GatewayEndpoint> 
     </Environment> 
    </Environments> 
</APIGateway> 

現在,當我發表我的API生產和沙盒網址是:

http://my.ip.address:8280/path/to/my/api 
https://my.ip.address:8243/path/to/my/api 

但是,當我嘗試向我的API網址發出請求時,出現超時錯誤。

爲什麼會發生這種情況?

+0

請啓用連線日誌並使用日誌更新問題。 http://lakshanigamage.blogspot.com/2015/03/how-to-enable-wire-logs-in-wso2-esbapim.html – Bee

+0

@Bhathiya然後我可以得到這些日誌? –

+0

in repository/logs/wso2carbon.log – Bee

回答

0

主要問題是我的系統管理員沒有爲本地網絡以外的用戶打開82808243端口。

+0

:D那麼,這是唯一的問題? –

+0

@AbimaranKugathasan XD yep。 –