Getting "Detailed IIS error - 404.0" in Node.js log in web server even all resources are available

A web page hosted on a Node.js server in the Azure cloud renders the page correctly (verified by the browser console), but the Azure Web server console generates or writes detailed error pages for various "missing" files (js, ico, css, ttf. ..).

An example of an error page in the server console (from azure site log tail <site>

):

<!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>
...

      

How can I "fix" IIS to not raise / record these false positives?

+3


source to share


1 answer


I was able to fix this issue by disabling "verbose error messages" in the Azure website configuration:



enter image description here

0


source







All Articles