简体   繁体   English

在Azure虚拟机中配置多个https网站

[英]configure multiple https websites in azure virtual machine

I have two websites and two different ssl certificates. 我有两个网站和两个不同的ssl证书。 I have an Azure windows VM. 我有一个Azure Windows VM。 I have configured website1 to port 443, applied one certificate, added inboud rule of https(port 443) rule from azure portal. 我已将website1配置为端口443,应用了一个证书,并从Azure门户添加了https(端口443)规则的inboud规则。 I have one more website which i want to be accessible over https. 我还有一个网站,希望通过https进行访问。 I have another ssl certificate. 我还有另一个ssl证书。 I hosted this website on port 444, added certificate. 我将这个网站托管在端口444上,并添加了证书。 the problem is azure portal only allows port:443 inbound rule. 问题是azure门户仅允许端口:443入站规则。

在此处输入图片说明

How can i host multiple https websites on windows azure vm? 如何在Windows Azure VM上托管多个https网站?

Well, you should create a custom rule for port 444, Azure doesn't really inspect traffic, so those labels (https,ssh,rdp, etc) are only for your convenience. 好了,您应该为端口444创建一个自定义规则,Azure不会真正检查流量,因此这些标签(https,ssh,rdp等)只是为了您的方便。

Also (apart from nsg rule), you should enable port 444 on windows firewall, make sure you app listens on 444 and make sure you can connect to a vm 另外(除了nsg规则),您还应该在Windows防火墙上启用端口444,确保您的应用监听444,并确保可以连接到虚拟机

How can i host multiple https websites on windows azure vm? 如何在Windows Azure VM上托管多个https网站?

1.You need open port 444 on Windows Firewall(Inbound rule). 1.您需要在Windows防火墙上打开端口444(入站规则)。 More information about open ports on Windows Firewall please refer to this link . 有关Windows防火墙上开放端口的更多信息,请参考此链接

2.You need open port 444 on Azure NSG rule(Inbound rule). 2.您需要在Azure NSG规则(入站规则)上打开端口444。

在此处输入图片说明

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

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