Azure Web应用程序 - 端点取决于域
我想在Azure Cloud中托管一个Angular应用。 该应用程序应可以通过不同的域访问。但是对于每个域,应用程序应使用不同的端点。
mycompany1.com-> restserver.company1/rest mycompany2.com-> RESTSERVER.company2/REST
仅使用一个Azure静态Web应用程序,Web应用程序或类似方法可行吗?
先感谢您。
I want to host an Angular App in the Azure Cloud.
This app should be accessible via different domains. But for each domain the app should use a different Endpoint.
mycompany1.com -> restserver.company1/rest
mycompany2.com -> restserver.company2/rest
Is this feasible with only one azure static web app, web app or similar?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过将负载平衡器放在Azure Web应用程序的前面来做到这一点。 Azure负载平衡服务可以沿两个维度进行分类:全局与区域,HTTP(S)与非HTTP(S)。
“ nofollow
noreferrer”区域选项是 Azure应用程序网关。多个站点托管使您可以使用面向公众的侦听器在同一应用程序网关上配置多个Web应用程序。它使您可以通过将多达100多个网站添加到一个应用程序网关来配置更有效的拓扑为部署。
Global
如果您想在多个地区托管您的站点,请考虑使用 Azure前门。
https://learn.microsoft.com/microsoft.com/en--en--- us/azure/application-gateway/totiver-site-overview
https://learn.microsoft.com/en-us/azure/application-gateway/configure-web-app- = customdomdomain%2cazure-portal
You can do this by putting a load balancer in front of your Azure Web App. Azure load balancing services can be categorized along two dimensions: global versus regional, and HTTP(S) versus non-HTTP(S).
REF
Regional
A great regional option is Azure Application Gateway. Multiple site hosting enables you to configure more than one web application on the same port of application gateways using public-facing listeners. It allows you to configure a more efficient topology for your deployments by adding up to 100+ websites to one application gateway.
Global
If you are looking to host your sites across multiple regions then consider using Azure Front Door.
https://learn.microsoft.com/en-us/azure/application-gateway/multiple-site-overview
https://learn.microsoft.com/en-us/azure/application-gateway/configure-web-app?tabs=customdomain%2Cazure-portal