---
title: "Configuring a Domain for an S3 Bucket | Hostman Docs"
description: "Learn how to connect your domain name to a bucket. This way, you won’t need to specify the bucket name when accessing the files."
---

> For the complete documentation index for AI agents, see [llms.txt](https://hostman.com/llms.txt).

You can connect your domain name to a [S3 Storage](https://hostman.com/s3-storage/) bucket. This way, you won’t need to specify the bucket name when accessing the files.

So, instead of these URLs:

```shell
https://s3.hmstorage.net/bucket_name/file_name
https://s3.hmstorage.net/bucket_name/directory_name/file_name
```

you can use URLs like these:

```shell
https://your.domain.tld/file_name
https://your.domain.tld/directory_name/file_name
```

Note that when accessing the domain (`https://your.domain.tld/`), you will not see a file listing or any other index page. The URL must specify the path to a specific file.

> [!NOTE]
> You need to use a third-level domain or higher, such as `hostman.mydomain.com`. 
>
> If your domain uses Cloudflare for proxying, disable it before linking the domain. Wait 5-10 minutes for the changes to take effect, link the domain following the instructions below, and re-enable proxying.

**To configure a domain:**

1.  Create a CNAME for the domain with the value `s3.hmstorage.net`. If the domain uses Hostman name servers, you can do it in the **Domains & SSL** section of your Hostman dashboard.
2.  Wait for 15-20 minutes for the changes to take effect.
3.  Go to the [S3 Storage](https://my.hostman.com/storage) section and click on the bucket.
4.  In the **Domains** tab, click **Link domain**.
5.  Enter your domain name and click **Link domain**.

![Faccb2a9 892b 494d 8b8f A82b87d9ee89](https://content.hostman.com/assets/1e3d1a6c-0b7f-4720-987c-2ac90caf684f.png?width=1530&height=844)

If you leave the **Issue SSL certificate** option checked, we will automatically generate and install a Let's Encrypt SSL certificate on your domain and renew it automatically one week before it expires.
