Addressing types
A container can have two types of addressing:
- Virtual-Hosted addressing (recommended);
- Path-Style addressing.
Addressing is selected when container creation. In a container with Path-Style addressing, you can enable Virtual-Hosted addressing. You cannot change the addressing from Virtual-Hosted to Path-Style.
You can view the addressing type of the created container in the control panels under Object Storage → Containers → container page → tab Accesses → block Addressing type.
Virtual-Hosted addressing
Virtual-Hosted addressing allows you to use CORS.
With this type of addressing, the name of the container is specified at the beginning of the URL: <container_name>.<s3_domain>
where <s3_domain>
— S3 API domain depending on pool.
If a container has Virtual-Hosted addressing enabled, it cannot be disabled.
By default, a project can have no more than 100 containers with Virtual-Hosted addressing. To increase the number of such containers file a ticket.
Enable Virtual-Hosted addressing
- In control panels go to Object Storage → Containers.
- Open the container page → tab Configuration.
- Click Modify.
- In the block Addressing type check the box Virtual-Hosted.
- Click Save.
Path-Style addressing
With this type of addressing, the name of the container is specified after the URL: <s3_domain>
/<container_name>
where <s3_domain>
— S3 API domain depending on 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).