简体   繁体   English

WSO2多租户和域名

[英]WSO2 Multi-Tenant and domains

Brand new, checking out wso2 API manager 1.8.0. 全新的,检查wso2 API管理器1.8.0。 I work for a corp with multiple organizations/teams, so setting up multi-tenancy seems like the logical choice. 我在一家拥有多个组织/团队的公司工作,因此设置多租户似乎是合乎逻辑的选择。

Following the quick start guide, I first created a new tenant, gave it a domain of "dev.api.myorg.company.net", added some users to it, and I can log in. I added one API. 按照快速入门指南,我首先创建了一个新的租户,给它一个域名“dev.api.myorg.company.net”,添加了一些用户,我可以登录。我添加了一个API。

I am able to hit the endpoint using the URL listed in the store: 我可以使用商店中列出的URL命中端点:

http ://wso2server.company.net:8280/t/dev.api.myorg.company.net/apiname/v1/endpoint http://wso2server.company.net:8280 / t / dev.api.myorg.company.net / apiname / v1 / endpoint

But my expectation was that configuring this tenant with a domain would allow me to hit: 但我的期望是,使用域配置此租户将允许我点击:

http ://dev.api.myorg.company.net:8280/apiame/v1/endpoint http://dev.api.myorg.company.net:8280 / apiame / v1 / endpoint

I have pointed the dev domain to the wso2server IP, but when I try to access using the dev api I get: 我已经将dev域指向了wso2server IP,但是当我尝试使用dev api访问时,我得到:

http://pastebin.com/VNXjEv3y http://pastebin.com/VNXjEv3y

Am I just missing something completely obvious? 我只是缺少一些完全明显的东西吗? Is there extra work to make wso2 allow tenants to point their domains at it? 还有额外的工作要让wso2允许租户指出他们的域名吗?

I have spent the last hour and a half googling and searching through tagged wso2 here, but google mostly points to the wso2 multi-tenant docs page, which is like a single page without any details. 我花了最后一个半小时的谷歌搜索和搜索标记的wso2这里,但谷歌主要指向wso2多租户文档页面,这就像一个页面没有任何细节。

Any pointers to better docs or suggestions for better search terms? 是否有更好的文档或更好的搜索条件的建议? Ive tried combinations of: 我尝试过组合:

wso2 multi tenant tenancy domains hosts how to access wso2多租户租赁域主机如何访问

when you create an api in a tenant it will get the following url pattern 当您在租户中创建api时,它将获得以下url模式

http ://**<IP-where apimanger is hosted>**:8280/t/<tenantdomain>/<apiname>/<version>/

where 't' denotes this api url is specific to tenant and tenantdomain denotes which denant 其中't'表示此api url特定于租户,tenantdomain表示哪个denant

but for super tenant url will be as following 但对于超级租户网址将如下

http ://<IP-where apimanger is hosted>:8280/<apiname>/<version>/

For tenanants, domain is just a name (not having mapping to ip).So APIM will not work as you expect.Because you need to specify the IP(or domain) where APIM is hosted in the url. 对于租户来说,域只是一个名称(没有映射到ip)。因此,APIM将无法按预期工作。因为您需要在URL中指定托管APIM的IP(或域)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM