【发布时间】:2021-12-07 14:48:26
【问题描述】:
按照Static website hosting in Azure Storage 和Add a custom domain to your endpoint 中的说明,我设法通过 Azure CDN 获得了一个带有自定义域和 https(尽管带有“www”子域)的静态网站。
但是,blob 端点以“/$web/index.html”结尾,这也是访问自定义域所必需的。所以它的形式是:
https://www.<customdomain>.com/$web/index.html
由于我正在使用的 SPA 框架,它立即变为:
https://www.<customdomain>.com/$web/index.html#/home
有点长。
我看到了在根自定义域上处理 https 的说明,如果我有勇气的话,可以尝试一下。但是有没有办法抑制/$web/index.html 部分?目前,如果我去:
https://www.<customdomain>.com
我明白了:
<Error>
<Code>InvalidQueryParameterValue</Code>
<Message>Value for one of the query parameters specified in the request URI is invalid. RequestId:...</Message>
<QueryParameterName>comp</QueryParameterName>
<QueryParameterValue/>
<Reason/>
</Error>
【问题讨论】: