简体   繁体   English

具有多个自定义域的Azure VM

[英]Azure VM with multiple custom domains

I am currently running a multi-tennant website in Azure under a web app. 我目前正在Web应用程序下在Azure中运行一个多租户网站。 I more than happy with the performance and scalablity options. 我对性能和可伸缩性选项感到非常满意。

But... 但...

I'm rapidly approaching the 500 custom domains limit. 我正在迅速接近500个自定义域的限制。 So need a new option. 因此需要一个新的选择。

I'm assuming this limit isn't applicable with an Azure VM? 我假设此限制不适用于Azure VM?

Is it just a case of adding any new custom domains to IIS and the windows Host file? 只是将任何新的自定义域添加到IIS和Windows Host文件的情况?

Can this work be scripted via powershell? 可以通过powershell编写脚本吗?

How scalable are VMs? 虚拟机的可扩展性如何?

  1. no, for azure vm you can have as many custom domain, because they are just CNAME records 否,对于Azure虚拟机,您可以拥有多个自定义域,因为它们只是CNAME记录
  2. not sure why you would need hosts file, that is certainly one way to do it, but not for front facing apps. 不确定为什么需要主机文件,这当然是一种方法,但对于前端应用程序则不需要。 you would need your hosts file changes for anybody accessing the site. 您将需要对主机文件进行更改,以便任何人访问该网站。
  3. this is more of a question to your DNS provider, but they usually have some sort of API you can talk to >> so you can automate this. 这对您的DNS提供商来说是一个更大的问题,但是他们通常具有您可以与>>交谈的某种API,因此您可以使它自动化。
  4. well, you can achieve scalability, but its not going to be straight forward (compared to App Services). 很好,您可以实现可伸缩性,但伸缩性不会很简单(与App Services相比)。 You would need either vms with availability set or vmss (virtual machine scale set). 您将需要具有可用性集的vms或vmss(虚拟机规模设置)。 You would also need a process to update your code on them and probably several other things (like how to install certificates etc). 您还需要一个过程来更新它们上的代码,以及可能还有其他一些事情(例如如何安装证书等)。

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

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