Use Virtual Host Addressing
IBM's S3 implementation supports Virtual Host Addressing of storage buckets.
The AWS .NET SDK uses Virtual Host Addressing by default.
The bucket name is determined by the virtual subdomain that is used to connect to the service.
Example: Using a Domain Name for Virtual Host Addressing
The Virtual Subdomain is determined by the bucket name.
You can use http://<bucketname>/<somedomain>/com to access the bucket bucketname. bucketname is
the S3 Virtual Host Suffix.
To use virtual-host addressing with a System, do the following steps.
- Configure their DNS servers properly to perform proper routing of virtual host style addresses to the appropriate Accesser node or load balancer IP address.
- Configure an S3 Virtual Host Suffixin the Manager Web Interface for each
Access Pool that is used to service virtual host addressed requests.Note: See the "Create Access Pool" section of the Manager Administration Guide for more details on setting this parameter in a Storage Pool.
- Set a domain name and not an IP address for the endpoint.
AmazonS3Config S3Config = new AmazonS3Config
{
// replace below url with your endpoint
ServiceURL = " system.example.com"
}