Use Virtual Host Addressing

This S3 implementation supports Virtual Host Addressing of storage buckets. The AWS Java SDK uses Virtual Host Addressing by default.

The CSO API supports Virtual Host Addressing of buckets. To provide access, use a domain name and not an IP address for the Accesser node.

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.

A User can use http://bucketname.somedomain.com/ to access the 'bucket' named 'bucketname'. 
'bucketname' is the S3 Virtual Host Suffix.
To use virtual-host addressing with a system, do the following steps.
  1. Configure their DNS servers properly to perform proper routing of virtual host style addresses to the appropriate Accesser node or load balancer IP address.
  2. Configure an S3 Virtual Host Suffix in the Manager Web Interface for each access pool that is used to service virtual host addressed requests.
    Note: See Create Access Pool in the Manager Administration Guide for more details on setting this parameter in a storage pool.
  3. Set a domain name and not an IP address for the endpoint.

AmazonS3 s3Client = new AmazonS3Client();
s3Client.setEndPoint("http://systemname.example.com");