【问题标题】:Is it possible to change the connection time out setting for IIS in Azure App Services是否可以在 Azure 应用服务中更改 IIS 的连接超时设置
【发布时间】:2020-03-04 15:00:45
【问题描述】:
我有一个托管在带有 IIS 的 VM 上的 asp.net 应用程序。现在我想在 Azure 应用服务中托管相同的应用程序。我们修改了 IIS 设置,例如 Connection Time-out。
如何设置 Azure 应用服务的连接超时值
【问题讨论】:
标签:
azure
azure-web-app-service
【解决方案1】:
如果您想编辑system.applicationHost 下的connectionTimeout 设置,您可以修改applicationhost.config 文件。您可以手动创建或使用IISManager 创建文件并进行修改。
这里是sample:
<system.applicationHost>
<sites>
<siteDefaults>
<logFile logFormat="W3C"
directory="%SystemDrive%\inetpub\logs\LogFiles"
enabled="true" />
<traceFailedRequestsLogging enabled="true"
directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles"
maxLogFiles="20" />
<limits connectionTimeout="00:01:00" />
<ftpServer serverAutoStart="true" />
<bindings>
<binding protocol="http" bindingInformation="127.0.0.1:8080:" />
</bindings>
</siteDefaults>
</sites>
</system.applicationHost>