更新时间:2023-10-16 22:41:34
您是部署到普通App Service还是App服务容器( Windows或Linux)?您能否提供有关您的应用程序配置
和您的要求的更多信息?
导航到
Kudu控制台 ( {yoursite } .scm.azurewebsites。 净)GT;
调试控制台> CMD 并创建一个文件名 applicationHost.xdt d:\\\ home \ site 目录
,允许您通过覆盖/转换为IIS设置允许的服务器变量。
Navigate to Kudu console({yoursite}.scm.azurewebsites.net)> Debug console > CMD and create a file name applicationHost.xdt under d:\home\site directory which allows you set the allowed server variables for IIS by overriding/transforming.
参考本文档部分
创作XDT转换有关此主题的更多详细信息。
此外, 参考文档 在Azure App Service中为Web应用程序启用
诊断日志记录 for
启用日志并查看404错误的子状态代码。
Refer this document section
Authoring XDT transforms for more details on this topic.
Also, refer the documentation Enable
diagnostics logging for web apps in Azure App Service for
enabling the logs and review the sub-status code for 404 error.
IIS集成中间件,配置转发标头中间件,以及ASP.NET核心模块配置
来转发方案(HTTP / HTTPS)和发出请求的远程IP地址。可能需要托管其他代理服务器和负载均衡器的应用程序。结帐此
文档了解详情。
此外,如果您希望更好地控制托管环境,您可以使用
杠杆 应用程序服务
for Windows Containers 。