Support for multiple domain names
Written by
Updated at November 27, 2025
This guide describes how to set up support for a website's primary domain name and its secondary domain, e.g., example.com and example2.com. You will create buckets for your primary and secondary domains. In the first bucket, you will configure static website hosting on your primary domain name; in the second bucket, you will enable redirection from the secondary domain name to the first bucket. You can use Yandex Cloud DNS to manage your domains.
You can configure support for multiple domain names for a static website in Object Storage using one of these tools:
- Management console, CLI, API: Create your infrastructure step by step from the Yandex Cloud management console, CLI, or API.
- Terraform: Streamline creating and managing your resources using the Infrastructure as Code (IaC) approach. Download a Terraform configuration example from the GitHub repository and then deploy your infrastructure using the Yandex Cloud Terraform provider.