禁用httpRuntime时阻止应用程序池关闭

时间:2016-05-17 11:24:28

标签: asp.net .net iis application-pool

我们必须在IIS的根目录级别为我们的应用程序禁用httpRuntime。 然后在子目录中启用它。

enter image description here

EnvMonitor的设置如下:

<system.web> <httpRuntime enable="false"/> </system.web>

在Api和Web上也是如此:

<system.web> <httpRuntime enable="true"/> </system.web>

由于在根级别(EnvMonitor)禁用了运行时,任何不正确的请求都会导致应用程序池关闭。 示例网址:http://localhost/EnvMonitor/badpath

无论如何这可以预防吗? 我们希望在根目录(EnvMonitor)上禁用httpRuntime。

0 个答案:

没有答案
相关问题