---
title: "Addressing types"
sidebar_label: "Addressing types"
description: "Available bucket addressing types, how to enable Virtual-Hosted addressing"
sidebar_position: 5
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# Addressing types

A bucket can have two types of addressing:

* [Virtual-Hosted addressing](#virtual-hosted) (recommended);
* [Path-Style addressing](#path-style).

The addressing type is selected when [creating a bucket](/s3/buckets/create-bucket.mdx). For a bucket with Path-Style addressing, you can [enable Virtual-Hosted addressing](#enable-virtual-hosted). You cannot change the addressing type from Virtual-Hosted to Path-Style.

You can view the addressing type of a created bucket in the [control panel](https://my.selectel.ru/storage/) in the **S3** → **Buckets** → bucket page → **Configuration** tab → **Addressing type**.

## Virtual-Hosted addressing \{#virtual-hosted}

Virtual-Hosted addressing allows you to use [CORS](/s3/buckets/cors.mdx). With this addressing type, the bucket name is specified at the beginning of the URL: `<bucket_name>.<s3_domain>`, where `<s3_domain>` is the [S3 API domain](/s3/manage/domains.mdx#s3-api-domains) depending on the [pool](/infrastructure/locations.mdx#pool).

If Virtual-Hosted addressing is enabled for a bucket, it cannot be disabled.

To enable Virtual-Hosted addressing, the bucket name must be compatible with the S3 API:

* be unique among all user buckets that use storage via the S3 API and are hosted in the same [pool](/infrastructure/locations.mdx#pool);
* comply with Amazon S3 bucket naming rules — contain only digits, Latin letters, the . and `-` characters; see more in the [Bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) section of the Amazon documentation.

By default, a project can have no more than 100 buckets with Virtual-Hosted addressing. To increase the number of such buckets, [create a ticket](https://my.selectel.ru/tickets/create/).

### Enable Virtual-Hosted addressing \{#enable-virtual-hosted}

1. In the [control panel](https://my.selectel.ru/storage/), click **Products** in the top menu and select **S3**.
2. Go to the **Buckets**.
3. Open the bucket page → **Configuration**.
4. In the **Addressing type** block, select **vHosted**.
5. Click **Save**.

## Path-Style addressing \{#path-style}

With this addressing type, the bucket name is specified after the URL: `<s3_domain>` / `<bucket_name>`, where `<s3_domain>` is the [S3 API domain](/s3/manage/domains.mdx#s3-api-domains) depending on the [pool](/infrastructure/locations.mdx#pool).

When using Path-Style, you cannot use [CORS](/s3/buckets/cors.mdx) and there may be limitations when working with tools that use the S3 API (for example, Cyberduck).

<Formbricks />
