如何使 Azure Web App 或 Web 服务仅通过应用程序网关并禁用直接访问。那么没有人能够通过直接的完全限定域名(例如 mysite.azurewebsite.net)访问?
感谢您提前提供的帮助。
最佳答案
您可以在 ILB Azure service environment 中设置 Azure Web 应用程序。 Azure ASE 是将 Azure 应用服务部署到 Azure 虚拟网络 (VNet) 中的子网中。此 ILB ASE(内部 ASE)不暴露于 Internet。您可以关注这个blog在支持 WAF 的应用程序网关后面运行应用服务。
This Web App isn't publicly accessible as it is sitting in a subnet inside a Virtual Network and it isn't exposed to the internet. The only way to access the site is through a Web Application Firewall enabled Application Gateway.
此外,如果您只想使用 IPSecurityRestrictions 选项限制对 Azure Web Apps 的公共(public)访问,您可以引用 this以获得更多引用。
关于Azure Web App 仅通过应用程序网关并禁用直接访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52013243/