我无法让运行 Windows Server 2012 的 Azure VM 从其公共静态 IP 提供 IIS 默认网站。
创建了一个运行 Win Server 2012 R2 的 VM 并安装了 Web 服务器角色。
浏览到 localhost 并可以看到默认网站正在运行
在 Azure 中,将 VM 配置为具有公共静态 IP 地址并将 DNS 名称添加到公开解析为静态 IP 的 azure。
在 Azure 中,为 VM 网络接口配置了一个安全组并添加了以下规则:
allow-http source: any source port: 80 dest: any dest port: 80 service: tcp/80 action: allow
allow-https source: any source port: 80 dest: any dest port: 80 service: tcp/443 action: allow
Run Code Online (Sandbox Code Playgroud)在 Windows 防火墙设置中,确保启用了允许 HTTP 和 HTTPS 流量的规则。(我也尝试过完全禁用防火墙)。
在 …