---
title: "Host Static Websites On S3 Storage | Hostman Docs"
description: "Set up a static website using S3 storage. Follow step-by-step instructions for uploading files, enabling website mode, configuring error pages, and understanding access limitations and public bucket requirements."
---

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

With S3 storage, you can host a static website. This is convenient, for example, for publishing documentation, a portfolio, or a landing page.

## Configuration

To host a website:

1.  Upload the index file to the root of the bucket. It must not be placed inside a folder.
    
2.  The rest of the files (pages, styles, scripts, media content) can be placed in directories.
    

Example structure:

```shell
index.html
pages/
  firstpage.html
  secondpage.html
img/
  1.png
  2.png
css/
  style.css
js/
  index.js
404.html
403.html
```

Files can be uploaded through the object manager or using third-party utilities, such as Cyberduck.

After uploading:

1.  Go to the **Settings** section of the bucket.
2.  Click the **Change** button next to **Website**.

![42ff6636 B993 4423 B676 98a4aadd3313](https://content.hostman.com/assets/b0d4ade1-b5f8-401a-b47c-9b250723ebdc.png?width=1572&height=1230)

3.  Enable the static website.
4.  (Optional) Change the name of the index file (default: `index.html`).
5.  (Optional) Configure error pages: select an error code (for example, 404) and the corresponding page.
6.  Copy the link where your website will be available.
7.  Save the changes.

![4fe392fe 911e 4ffb 9e3f D13347e8956d](https://content.hostman.com/assets/5f390de4-08c8-475b-a24a-c75500707c76.png?width=1541&height=823)

## Limitations

-   At the moment, you cannot connect a custom domain. The site will only be available at an address like:

```shell
bucket_name.website.hmstorage.net
```

-   For the site to work, the bucket must be public. If you make it private, the pages will start returning a 403 error.
