Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
获得;IIS详细错误-404.0“;在Node.js web服务器日志中,甚至可以访问所有资源_Node.js_Iis_Azure_Express - Fatal编程技术网

获得;IIS详细错误-404.0“;在Node.js web服务器日志中,甚至可以访问所有资源

获得;IIS详细错误-404.0“;在Node.js web服务器日志中,甚至可以访问所有资源,node.js,iis,azure,express,Node.js,Iis,Azure,Express,托管在Azure cloud中Node.js服务器上的网页正确显示该页面(通过浏览器控制台确认),但Azure web服务器控制台仍然会为各种“缺失”文件(js、ico、css、ttf…)创建/记录详细的错误页面 服务器控制台中的错误页面示例(来自azure站点日志尾部): IIS详细错误-404.0-找不到 ... 请求的URLhttp://servername:80/js/ripples.min.js 物理路径D:\home\site\wwwroot\js\ripples.min.js

托管在Azure cloud中Node.js服务器上的网页正确显示该页面(通过浏览器控制台确认),但Azure web服务器控制台仍然会为各种“缺失”文件(js、ico、css、ttf…)创建/记录详细的错误页面

服务器控制台中的错误页面示例(来自
azure站点日志尾部
):


IIS详细错误-404.0-找不到
...
请求的URLhttp://servername:80/js/ripples.min.js 
物理路径D:\home\site\wwwroot\js\ripples.min.js
匿名登录方法
匿名登录用户
...

我如何“修复”IIS以不引发/记录这些误报?

我可以通过禁用Azure网站配置中的“详细错误消息”来解决此问题:


什么是“丢失”文件?@laika,从日志中的错误页面可以看到,其中一个是
ripples.min.js
。正如我所说,IIS将它们报告为404,但它们都可以在网页上访问(并呈现)。@Saran我看到了同样的问题。我使用的是node.jsrestapi,它显示的是网页数据。您是如何解决此问题的?抱歉,但这是一个解决方法,而不是解决方案。我想查看错误消息,但报告的错误消息是错误的——这就是问题所在。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS Detailed Error - 404.0 - Not Found</title>
...
<table border="0" cellpadding="0" cellspacing="0"> 
<tr class="alt"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;http://servername:80/js/ripples.min.js</td></tr> 
<tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;D:\home\site\wwwroot\js\ripples.min.js</td></tr> 
<tr class="alt"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> 
<tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Anonymous</td></tr> 

</table>
...