如何将第一页从发布者更改为存储并将非 https 地址重定向到 https

how can change first page from publisher to store and redirect the non https address to https

我正在使用 wso2 apim 2.6 和 analytics 2.6。 我有两个问题。 首先,我想将默认页面从发布者地址更改为商店地址。 例如,当我只写地址时(示例:https://example.com) by default it goes to https://example.com/publisher . I want to change this default to https://example.com/store .

我的第二个问题是关于将非 https 地址(示例:example.com/store)重定向到 https 地址(示例:https://example.com/store)。现在当我写 example.com 时在页面上出现错误并且无法加载。

在每个示例中我使用 https://example.com 而不是地址

默认情况下,默认上下文是 API 管理器中的发布者。这就是您重定向到发布者的原因。您可以通过关注 https://docs.wso2.com/display/AM260/Directing+the+Root+Context+to+the+API+Store

将其更改为商店

您可以在负载均衡器端将http 流量重写为https。 Nginx 的示例可以在 https://docs.wso2.com/display/AM260/Configuring+the+Proxy+Server+and+the+Load+Balancer 中找到。