WSO2am 更改商店/出版商/碳网址 [英] WSO2am change store/publisher/carbon url

查看:30
本文介绍了WSO2am 更改商店/出版商/碳网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 wso2am.启动服务后,它给了我 3 个网址.

<块引用>

1) 商店 2) 出版商 3) 碳

现在我需要在 URL 中设置域名而不是 IP 地址. 我正在尝试在本地机器上进行(刚刚添加了 wso2am 根文件夹和运行 wso2server.bat 文件).

<环境><环境类型="hybrid" api-console="true"><名称>生产和沙盒</名称><Description>这是一个混合网关,可以处理生产和沙盒令牌流量.</Description><ServerURL>https://demodomain.com:${mgt.transport.https.port}${carbon.context}services/</ServerURL><用户名>${admin.username}</用户名><密码>${admin.password}</密码><GatewayEndpoint>http://demodomain.com:${http.nio.port},https://demodomain.com:${https.nio.port}</GatewayEndpoint></环境></环境></APIGateway>

这里 demodomain.com 是我使用的域名,而不是 localhost 或 wso2 分配的任何 IP.

此后我重新启动服务器,wso2 再次为我提供带有 IP 的 URL.它不使用 demodomain.com.如果我尝试使用该域名访问 store/publisher/carbon,它不会加载.

有什么想法吗?

编辑

我已经浏览了

解决方案

设置

demodomain.com<MgtHostName>demodomain.com</MgtHostName>

carbon.xml 中.

I have installed wso2am. After starting the services it gives me 3 urls.

1) for store 2) for publisher 3) for carbon

Now i need to set a domain name rather than IP address in the URLs. I am trying to do it on local machine (Just added the wso2am root folder and running wso2server.bat file).

<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>
                        <ServerURL>https://demodomain.com:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
                        <Username>${admin.username}</Username>
                        <Password>${admin.password}</Password>
                        <GatewayEndpoint>http://demodomain.com:${http.nio.port},https://demodomain.com:${https.nio.port}</GatewayEndpoint>
                    </Environment>
                </Environments>
        </APIGateway>

Here demodomain.com is the domain name i am using rather than localhost or whatever IP wso2 is assigning.

After this i restart the server and again wso2 provides me URLs with IPs. Its not using demodomain.com. If i try to access store/publisher/carbon using that domain name it doesn't load.

Any ideas?

EDIT

I have gone through https://docs.wso2.com/display/AM200/Customize+the+API+Store+and+Gateway+URLs this. But seems its outdated. I cant find /_system/governance/customurl/api-cloud/<tenant-id>/urlMapping/<tenant-id> under carbon->Browse->Resourcessection.

EDIT

Even after setting this

<HostName>demodomain.com</HostName> 

in carbon.xml after restarting i am still seeing the below. Its still generating dynamic IPs.

解决方案

Set

<HostName>demodomain.com</HostName>
<MgtHostName>demodomain.com</MgtHostName>

in carbon.xml.

这篇关于WSO2am 更改商店/出版商/碳网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆