gpt4 book ai didi

azure - 使用 CDN 和 V-Net 部署为 Azure Blob 静态网站的 SPA 不存在请求的内容

转载 作者:行者123 更新时间:2023-12-02 08:32:49 29 4
gpt4 key购买 nike

我有一个 SPA(使用 Angular 构建)并部署到 Azure Blob 存储。使用 Azure CDN 一切都运行良好。我将azure存储放入azure V-net存储内的azure子网中,CDN url给出“请求的内容不存在”,但默认url(存储url)工作正常。

最佳答案

根据您的描述,您似乎已允许从存储帐户的防火墙和虚拟网络中的选定网络进行访问。阅读 here .

Turning on firewall rules for your storage account blocks incoming requests for data by default, unless the requests originate from a service operating within an Azure Virtual Network (VNet) or from allowed public IP addresses. Requests that are blocked include those from other Azure services, from the Azure portal, from logging and metrics services, and so on.

因此,当您通过 CDN 端点访问 SPA 时,它将阻止 Azure CDN 请求。在这种情况下,如果您想允许来自 Azure CDN 的访问,您可以 retrieve the current POP IP list for Azure CDN然后将这些 IP 范围列入存储帐户的防火墙白名单。

关于azure - 使用 CDN 和 V-Net 部署为 Azure Blob 静态网站的 SPA 不存在请求的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59420003/

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