【发布时间】:2019-08-01 23:07:16
【问题描述】:
我们在 Azure 有一个 nodeJS webapp,它运行良好。
在流式传输服务器日志时,每当我加载页面时,我都会在所有资源(图像、css 等)上收到一堆 404 错误。但是页面显示正常。
详细错误显示如下:
Requested URL https://[myappname]:80/settings.png
Physical Path D:\home\site\wwwroot\settings.png
Logon Method Anonymous
Logon User Anonymous
请求的 URL 显然是错误的,它应该是 https://[myappname].azurewebsites.net/settings.png,这是给定资源的公共 URL,并且工作正常。 此问题会加载大量日志,导致目前无法使用 Web Server 日志。
谢谢!
编辑:与this problem 不同,我的页面加载正常,资源文件可用。
已解决我已将以下处理程序添加到我的 web.config 中:
<add name="UrlRoutingModule-4.0" path="*" verb="*" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
【问题讨论】:
标签: node.js azure resources http-status-code-404