【发布时间】:2017-08-28 10:47:00
【问题描述】:
我在 Azure 应用服务上部署了一个 NodeJS 应用程序。
使用 38 MB 的文件发布帖子时出现 404 错误,但在后台存在 IIS 问题"Request filtering is configured on the Web server to deny the request because the content length exceeds the configured value."
要设置“maxAllowedContentLength”,我必须编辑“web.config”文件。
这不好,因为如果我对 Azure 门户应用程序设置进行一些更改,我的本地版本的 web.config' 会与自动生成的文件发生冲突。
是否可以以不同的方式设置“maxAllowedContentLength”?
【问题讨论】:
-
在 Azure 门户中添加 maxAllowedContentLength 作为应用设置有什么问题?
-
完全正确,但据我所知,Azure 门户的应用程序设置中尚未作为选项出现
-
编辑自动生成的web.config 是否可以设置阈值。感谢弗雷德