在云计算和网站托管领域,一个空间(通常指一个网站或应用的部署环境)可以绑定多个域名。这种绑定允许用户通过不同的域名访问同一个网站或应用,从而实现多域名管理、品牌区分、地理定位等多种功能。
blog.example.com
或 shop.example.com
。*.example.com
。en.example.com
和 zh.example.com
。brand1.example.com
和 brand2.example.com
。us.example.com
和 eu.example.com
。原因:
解决方法:
解决方法:
# 绑定主域名
curl -X PUT -H "Authorization: TC3-HMAC-SHA256 Credential=AKIDz8krbsJ5yKBZQpn74WFkmLPx3EXAMPLE/2019-01-09/service/tc3_request, SignedHeaders=content-type;host;x-tc-action;x-tc-timestamp, Signature=fe5f80f77d5fa3beca0476536d6b6fbd5fa84671fb667a5c2636380ae19698f6" -H "Content-Type: application/json" -d '{"Domain":"example.com","EnableSubDomain":false}' https://cos.api.tencentcloudapi.com/service/domain
# 绑定子域名
curl -X PUT -H "Authorization: TC3-HMAC-SHA256 Credential=AKIDz8krbsJ5yKBZQpn74WFkmLPx3EXAMPLE/2019-01-09/service/tc3_request, SignedHeaders=content-type;host;x-tc-action;x-tc-timestamp, Signature=fe5f80f77d5fa3beca0476536d6b6fbd5fa84671fb667a5c2636380ae19698f6" -H "Content-Type: application/json" -d '{"Domain":"blog.example.com","EnableSubDomain":false}' https://cos.api.tencentcloudapi.com/service/domain
领取专属 10元无门槛券
手把手带您无忧上云