配置 Azure Web 应用上的 DynamicIpRestrictionModule

huangapple go评论56阅读模式
英文:

configuring DynamicIpRestrictionModule on Azure web app

问题

我们的Asp.net Web应用程序在以下技术栈上运行:Azure Web应用程序、.Net 4.8、Telerik .Net AJAX组件、Aspx Web表单。

在其中一个页面上,当请求页面资源(Webresources.axd、CSS文件、图像等)时,我们遇到了403.502错误状态。

使用浏览器开发工具,我们模拟了慢3G网络质量,页面加载没有任何问题。

我们检查了并发现Web应用程序IIS中有一个名为DynamicIpRestrictionModule的模块,它限制了来自相同客户端IP的并发请求。当达到此限制时,我们会遇到403.502错误(当我们使用慢3G网络时,并发限制未达到,这就是为什么页面加载没有任何错误的原因)。

有没有办法增加或禁用这个限制?

谢谢。

英文:

We have an Asp.net web app running on the following stack : azure webapp, .Net 4.8, Telerik .Net AJAX components, Aspx webforms

in one of the pages we have a 403.502 error status when requesting page resources (Webresources.axd, css files, images etc ..)
using the browser dev tools we simulated a slow 3g network quality and the page loaded without any issue

we checked and we found that there is a module in webapp IIS called DynamicIpRestrictionModule that limits concurrent requests from the same client IP. When this limit is reached we have the 403.502 error (when we were on a slow 3g network, the concurrent limit is not reached, that's why the page load without any error)

Is there any way to increase or disable this limit ?

Thank you

答案1

得分: 0

感谢 @Lex Li 的评论。

我已经在 KUDU控制台 => 站点扩展 中找到了 Dynamic IP Restriction 的扩展。

Azure Web 应用上的 DynamicIpRestrictionModule 可以通过从 SiteExtensions 安装包来进行配置。

  • 我们可以从 扩展 选项卡添加这个扩展。

配置 Azure Web 应用上的 DynamicIpRestrictionModule

或者

  • 站点扩展 => 图库 => 使用 Dynamic 关键词搜索。

配置 Azure Web 应用上的 DynamicIpRestrictionModule

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • 安装扩展后,重新启动 WebApp 以反映更改。

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • 单击 标签 启动 Dynamic IP Restriction UI

配置 Azure Web 应用上的 DynamicIpRestrictionModule

Dynamic IP Restriction UI:

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • 单击下面显示的 References 链接:

配置 Azure Web 应用上的 DynamicIpRestrictionModule

它将重定向到 techcommunity 博客。

感谢 @Vijay Saayi Ravinuthala 提供清晰的步骤。

如文档所述,您也可以在 Web.config 文件中设置限制。

还请参考 SHAHRIAR HOSSAIN 文档,该文档解释了位于 wwwroot 文件夹中的 Web.config 文件中的相同配置。

  • 我已经从 UI 中更新了设置,我可以看到更改反映在新创建的 site 文件夹下的 applicationHost.xdt 文件中。

配置 Azure Web 应用上的 DynamicIpRestrictionModule

配置 Azure Web 应用上的 DynamicIpRestrictionModule

英文:

Thanks @Lex Li for the comment.

I have found an extension for Dynamic IP Restriction in the KUDU Console => Site extensions.

DynamicIpRestrictionModule on Azure web app can be configured by Installing the Package from SiteExtensions.

  • We can add the extension from the Extensions tab.

配置 Azure Web 应用上的 DynamicIpRestrictionModule

OR

  • In the Site extensions => Gallery => search with Dynamic keyword.

配置 Azure Web 应用上的 DynamicIpRestrictionModule

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • After installing the Extension, restart the WebApp to get the changes reflected.

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • Click on tab to Launch the Dynamic IP Restriction UI.

配置 Azure Web 应用上的 DynamicIpRestrictionModule

Dynamic IP Restriction UI:

配置 Azure Web 应用上的 DynamicIpRestrictionModule

  • Click on the References link as shown below:

配置 Azure Web 应用上的 DynamicIpRestrictionModule

It will be redirected to the techcommunity blog.

Thanks @Vijay Saayi Ravinuthala for the clear steps.

As mentioned in the document, you can set the limit in Web.config file as well.

Also refer SHAHRIAR HOSSAIN document which explains the same configurations in Web.config file which is in wwwroot folder.

  • I have updated the settings from UI, I can see the changes reflected in the newly created applicationHost.xdt file under site folder.

配置 Azure Web 应用上的 DynamicIpRestrictionModule

配置 Azure Web 应用上的 DynamicIpRestrictionModule

huangapple
  • 本文由 发表于 2023年6月19日 08:44:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/76503045.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定