Updated on 2026-07-27 GMT+08:00

VirtualHostDomainRequired

Virtual host domain is required while accessing a specific bucket.

Error description

A virtual host domain name is required for accessing a specific bucket.

Error cause

A path-style request is used to access a specific bucket. However, the current configuration requires that a virtual host domain name be used for access.

Handling suggestion

  • Path-style access: The bucket name is not included in the domain name but in the URL parameter, for example, https://obs.regionID.myhuaweicloud.com/${bucketname}/query.
  • Virtual host-style access: The bucket name is included in the domain name, for example, https://${bucketname}.obs.regionID.myhuaweicloud.com/query.

Change to virtual host-style access, for example, change http://obs.cn-north-4.myhuaweicloud.com/bucketname/object to http://bucketname.obs.cn-north-4.myhuaweicloud.com/object by referring to Constructing a Request.