Configuring buckets

You can configure a bucket:

  • Set the host to redirect requests to.
  • If necessary, specify the protocol to be used to access the host. The initial request protocol is used by default.

If you are going to use your own domain to publish a website, the bucket name must exactly match the domain name. For instance, example.com.

Buckets can be configured:

Support for multiple website domain names

If you want to have multiple domain names supported for your website, for instance, example.com and www.example.com, you can do this as follows:

  1. Create the example.com bucket and upload your data to it.

  2. Set up an alias for the bucket through your provider.

    example.com CNAME example.com.website.yandexcloud.net
    
  3. Create the www.example.com bucket and leave it empty.

  4. Set up an alias for the bucket through your provider.

    www.example.com CNAME www.example.com.website.yandexcloud.net
    
  5. Set up a redirect for all data from the www.example.com bucket to the example.com one.