HagiCode Fullstack

Свой домен и HTTPS (по желанию)

Draft: this lesson is an outline and will be expanded.

This lesson is optional. Your site already works at the free address from the previous lessons. A custom domain gives it a name of your own, such as my-site.com. If you do not own a domain, skip this lesson and finish the course with the free address.

What you will do

  1. Decide whether you want a domain. Buying one costs money every year, so check the price and the renewal price before you pay.
  2. Buy a domain from a registrar, which is a company that sells domains. Choose a well-known one, and keep the account password private.
  3. Ask your AI assistant: “I have a site on my hosting service and a new domain. Which DNS entry do I need to add so that the domain points to the site?” Remember that DNS is the internet’s phone book. Compare the answer with the instructions of your hosting service.
  4. In your hosting service, add the domain to your site. Then add the entry it asks for at your registrar or at the service that manages your DNS.
  5. Wait. DNS changes can take from a few minutes to many hours to reach everyone.
  6. Open the domain and check that the browser shows a padlock. The hosting service normally issues the HTTPS certificate for you.

For mainland China: a domain that is served from computers inside mainland China usually needs an ICP filing first, which is a registration with the authorities. It takes time. Confirm the current rule with your hosting service before you buy.

Check yourself

  • Your own domain opens your site.
  • The browser shows a padlock.
  • You know the yearly cost and whether a filing is needed for your path.