[英]Error in Node.js with Azure web app service
I am new to Node.js and I have created a basic application in node.js and trying to deploy on Azure web App service. 我是Node.js的新手,并且已经在node.js中创建了一个基本应用程序,并尝试在Azure Web App服务上进行部署。
After successful deployment, when I am trying to hit a website it showing me two types of error like You do not have permission to view this directory or page. 成功部署后,当我尝试访问一个网站时,它向我显示两种错误,例如您无权查看此目录或页面。 or website not responding .
或网站没有反应 。
In both cases, when I tried to trace the logs, it shows me following logs in the things you can try 在这两种情况下,当我尝试跟踪日志时,它都会向您显示可以尝试的日志
How can I resolve the error? 我该如何解决该错误?
You can try this approach:- 您可以尝试这种方法:-
web.config
file at the root of the app directory. web.config
文件。 web.config
: web.config
: <configuration> <system.webServer> <!-- indicates that the index.js file is a node.js application to be handled by the iisnode module --> <handlers> <add name="iisnode" path="index.js" verb="*" modules="iisnode" /> </handlers> <!-- adds index.js to the default document list to allow URLs that only specify the application root location, eg http://mysite.antarescloud.com/ --> <defaultDocument enabled="true"> <files> <add value="index.js" /> </files> </defaultDocument> </system.webServer> </configuration>
Hope it helps. 希望能帮助到你。 You can try enabling customerror=off to for troubleshooting exact error.For reference please follow: Azure website message "You do not have permission to view this directory or page.".
您可以尝试启用customerror = off来对确切的错误进行故障排除。有关参考,请遵循: Azure网站消息“您无权查看此目录或页面。”。 What to do?
该怎么办?
MV MV
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.