Updated on 2023-06-20 GMT+08:00

Making Preparations

Registering a Domain Name

If you already have a registered domain name, skip this step.

If you do not have such domain name, register one with a registrar. In this example, the example domain name www.example.com is used. In practice, you need to replace the domain name with the one you actually planned.

Creating a Bucket

There are no special requirements on bucket names. Follow the instructions on the console to create a bucket for storing static website files. The following example describes how to create a bucket named example:

  1. Log in to OBS Console.
  2. Click Create Bucket in the upper right corner of the page.
  3. Configure the following parameters:

    • Region: Select a region closest to you.
    • Default Storage Class: Select Standard (recommended).

      You can also select Infrequent Access or Archive based on how frequently the website is accessed or how fast the website should respond. For details about storage classes, see Storage Classes.

    • Bucket Name: Enter example.
    • Bucket Policy: Select Public Read to allow any user to access objects in the bucket.
    • Server-Side Encryption: Select Disable.
    • Enterprise Project: The default project is default. You can also create an enterprise project and then choose it for the bucket you are creating. Only an enterprise account can configure enterprise projects.

  4. Click Create Now. The bucket is created.