无法在Azure网站上设置默认页面

时间:2018-01-11 16:09:24

标签: azure iis azure-virtual-machine

我无法查看自定义index.html页面。这是我到目前为止所做的:

  • 创建了新的Windows OS 2012 VM
  • 安装IIS并启用默认站点。
  • 在默认网站下,我创建了一个包含自定义内容的index.html。
  • 在服务器上,当我导航到http://localhost时,它可以正常工作。我可以查看我的index.html页面。
  • 当我尝试在桌面上访问外部页面时,我会获得标准的iisstart.htm页面。
  • 在我的VM上,我有端口80打开入站和出站。
  • 在IIS上我将index.html设置为网站的默认页面。

  • 我也重新启动了虚拟机,应用池和网站。

1 个答案:

答案 0 :(得分:0)

我们可以按照以下步骤在IIS中设置默认网页:

1.在index.html中添加wwwroot

enter image description here

2.将端口80添加到Windows防火墙入站规则:

enter image description here

3.将端口80添加到Azure NSG入站规则:

enter image description here 4.浏览它:

enter image description here

希望这有帮助。