Addressing types
A container can have two types of addressing:
- Virtual-Hosted addressing (recommended);
- Path-Style addressing.
Addressing is selected when the container is created. A container with Path-Style addressing can have Virtual-Hosted addressing enabled. You cannot change the addressing from Virtual-Hosted to Path-Style.
You can view the addressing type of a created container in the control panel under Object Storage → Containers → Contain er page → Configuration tab → Addressing Type block .
Virtual-Hosted addressing
Virtual-Hosted addressing allows the use of CORS.With this type of addressing, the container name is specified at the beginning of the URL: <container_name>.<s3_domain>
, where <s3_domain>
is the S3 API domain depending on the pool.
If a container has Virtual-Hosted addressing enabled, it cannot be disabled.
To enable Virtual-Hosted addressing, the container name must be compatible with S3:
- Be unique among the containers of all users that use the storage over S3 and are hosted in the same pool;
- comply with Amazon S3 Bucket naming rules — contain only numbers, letters of the Latin alphabet, symbols . and
-
, for more information see the Bucket naming rules in the Amazon documentation.
By default, a project can have a maximum of 100 Virtual-Hosted addressing containers.To increase the number of such containers , create a ticket.
Enable Virtual-Hosted addressing
- In the Control Panel, on the top menu, click Products and select Object Storage.
- Go to the Containers section.
- Open the container page → Configuration tab.
- In the Addressing Type block, select vHosted.
- Click Save.
Path-Style addressing
With this type of addressing, the container name is specified after the URL: <s3_domain>
/ <container_name>
, where <s3_domain>
is the S3 API domain depending on the pool.
When using Path-Style, you cannot use CORS and there may be limitations when working with tools that use the S3 API (e.g. Cyberduck).