gpt4 book ai didi

angularjs - Azure Web 应用程序上的 Angular 应用程序失败并显示 "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

转载 作者:行者123 更新时间:2023-12-03 01:48:42 25 4
gpt4 key购买 nike

在本地确认常规操作后,我刚刚将 Angular 应用程序发布到 Azure Web Apps。但是,我现在收到以下错误(HTTP 错误 404.0 - 未找到),特别是 D:\home\site\wwwroot\bin\www 文件:

enter image description here

但是,使用 Kudu 工具,我可以看到该文件确实存在:

enter image description here

什么可能导致此错误?

最佳答案

默认情况下,IIS 会阻止提供某些文件夹(包括 bin)中的内容。您可以 a) 将 www 文件夹移出 bin 目录,或者 b) 您可以将以下配置添加到 web.config:

<configuration>
<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>

关于angularjs - Azure Web 应用程序上的 Angular 应用程序失败并显示 "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42453268/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com