[Node.js] [Web Apps] Azure:“您无权查看此目录或页面。” [英] [Node.js][Web Apps] Azure: "You do not have permission to view this directory or page."

查看:98
本文介绍了[Node.js] [Web Apps] Azure:“您无权查看此目录或页面。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Azure SDK 2.7和Node.js工具在Visual Studio 2015中创建了一个node.js应用程序。


我已成功使用BitBucket设置CI我的网络应用程序,我可以看到对存储库的更改确实触发了构建和部署。


然而,我到达的页面(http://ftct.azurewebsites.net/)抱怨:  您无权查看此目录或页面。


我已使用以下命令在node.js中指定了默认文件(kinda): app.get('/',routes.index);


因此尝试直接导航到此文件,http://ftct.azurewebsites.net/signin.html,收益率一个不同的错误:  您要查找的资源已被删除,名称已更改或暂时不可用。


我将应用配置为运行在Visual Studio中的端口1337上,但使用此端口不能解决问题。尝试导航到移植的地址会产生超时。


任何想法?


标记

解决方案


感谢您发帖这里。


首先,我建议你可以在Azure配置面板上设置默认页面。


其次,我建议您尝试使用FTP登录Azure网站并检查您的文件是否 在这里请检查一下。


http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading -files-over-ftp-and-collecting-diagnostics-logs.aspx


希望这会有所帮助。


Girish Prajwal


I have created a node.js application in Visual Studio 2015 using the Azure SDK 2.7 and the Node.js Tools.

I have successfully set up CI with BitBucket in my web app and I can see that changes to the repository do indeed trigger a build and deploy.

However, the page I reach (http://ftct.azurewebsites.net/) complains: You do not have permission to view this directory or page.

I have specified a default file (kinda) in my node.js by using: app.get('/', routes.index);

So trying to navigate directly to this file, http://ftct.azurewebsites.net/signin.html, yields a different error: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

I configured the app to run on port 1337 in Visual Studio, but using this port doesn't overcome the problem. Trying to navigate to a ported address yields a timeout.

Any ideas?

Mark

解决方案

Hi,

Thanks for posting here.

Firstly, I suggest you could set your default page on you Azure configuration panel.

Secondly, I suggest you could try to use FTP to login on Azure website and check your files whether  were here. Please check it.

http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx

Hope this helps.

Girish Prajwal


这篇关于[Node.js] [Web Apps] Azure:“您无权查看此目录或页面。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆