
我已经成功地在azure中部署了nodejs应用程序。当我导航到**https://my-app/xyz **刷新页面时,您没有查看此目录或页面的权限。
我试着编辑web-config,但它仍然不能工作。我不确定这是否是安全问题,或者node.js不能为此路由提供任何服务,但在我的本地计算机上,如果我确实刷新了,它不会显示此问题。上面的图片包含目录结构,/client对files.Thank进行了Angular编译
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteRules" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>发布于 2019-06-06 17:28:08
我经历过这个错误。我想你是通过一个虚拟目录来访问网站的。
/xyz,物理路径site\wwwroot\yourcustomfoldername。会是这样的,

https://stackoverflow.com/questions/56417762
复制相似问题