首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >wso2应用编程接口管理器。重定向到localhost

wso2应用编程接口管理器。重定向到localhost
EN

Stack Overflow用户
提问于 2020-03-02 09:07:08
回答 4查看 1.8K关注 0票数 2

请帮助我安装了wso2 APIM,现在正在配置。我创建了新的REST API,并输入url“在开发门户中查看”,为我重定向到本地主机。我在deployment.toml中更改了主机名(ip-addr)。为什么为我重定向到localhost?

EN

回答 4

Stack Overflow用户

发布于 2020-03-02 09:33:34

取消注释并更新此配置。

代码语言:javascript
运行
AI代码解释
复制
#[apim.devportal]
#url = "https://localhost:${mgt.transport.https.port}/devportal"
票数 3
EN

Stack Overflow用户

发布于 2020-03-02 10:14:26

谢谢Bee的回答

制造了,但不能工作...

代码语言:javascript
运行
AI代码解释
复制
[apim.devportal]
url = "https://192.168.3.148:${mgt.transport.https.port}/devportal"
#enable_application_sharing = false
#if application_sharing_type, application_sharing_impl both defined priority goes to application_sharing_impl
#application_sharing_type = "default" #changed type, saml, default #todo: check the new config for rest api
#application_sharing_impl = "org.wso2.carbon.apimgt.impl.SAMLGroupIDExtractorImpl"
#display_multiple_versions = false
#display_deprecated_apis = false
#enable_comments = true
#enable_ratings = true
#enable_forum = true
票数 0
EN

Stack Overflow用户

发布于 2020-03-02 11:59:20

来自文档:

代码语言:javascript
运行
AI代码解释
复制
By default, WSO2 products identify the hostname of the current machine through the Java API. However, this value sometimes yields erroneous results on some environments. Therefore, users are recommended to configure the hostname. The following procedure explains how to change the hostname and management hostname of WSO2 API Manager (WSO2 API-M) as required for your production environment.

Update the deployment.toml file.

Open the <API-M_HOME>/repository/conf/deployment.toml file

Define the hostname attribute under server configurations as shown below.

Format

[server]
hostname = "{hostname}"
Example
{hostname} - Hostname or IP address of the machine hosting this server. This is will become part of the End Point Reference of the services deployed on this server instance.

Configure the Developer Portal URL, which is used to access the Developer Portal via the Publisher.

Uncomment the following configuration and define the hostname.


[apim.devportal]
url = "https://<hostname>:${mgt.transport.https.port}/devportal"
Generate a key store, export the public certificate from the keystore, and import that certificate to the client­-truststore.jks file.

For more information, see Creating New Keystores.

Restart the server.

如果我更改了主机名并写入deployment.toml,我是否应该生成新密钥存储?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60485514

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档