使用应用程序网关的基于子域的路由 [英] Sub-Domain Based Routing Using Application Gateway

查看:61
本文介绍了使用应用程序网关的基于子域的路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个多租户SaaS平台,该平台基本上使用子域来区分租户(即customer1.domain.com,customer2.domain.com,customerX.domain.com等).我需要能够基于子域路由到特定的服务器/VM. 我看到了多站点路由功能以及基于路径的路由,但是1)我不太确定这是正确的位置,2)根本不可能,因为我发现了一些要求这种功能的线程.我几乎需要在其中映射的路由表 IP地址/VM的子域.

I have a multi-tenant SaaS platform that basically uses sub domains to differentiate the tenants (i.e. customer1.domain.com, customer2.domain.com, customerX.domain.com, etc...). I need to be able to route based on the sub domain to a specific server / VM. I saw the multi-site routing capabilities as well as path based routing, but 1) I am not too sure if this is the right place and 2) if this is possible at all as I found a few threads that request such functionality. I almost need a routing table where I map a sub-domain to an IP address / VM. 

然后3),是否所有VM都必须与应用程序网关位于同一资源组中?看起来如此……

And 3), do all VM's have to be in the same resource group as the application gateway? It appears so...

感谢您的帮助!

推荐答案

T
This is possible with App Gateways. You can map different inputs to a specific set of VMs / IP Addresses. You will need to make the DNS point to the proper input for the App Gateway, then configure the listener & routing rules to send traffic to the proper backend pools. 


这篇关于使用应用程序网关的基于子域的路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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