Assigning a domain name to a VM with a web server
Written by
Updated at December 4, 2024
In this tutorial, you will assign your own domain name to a Yandex Compute Cloud VM with a web server.
To create a VM, this tutorial uses a public LAMP image with a pre-installed Apache HTTP server
The example.com
domain name is used as an example. It will be mapped to the IP address of the VM using DNS records in Yandex Cloud DNS. You can use any domain name registrar to register your domain name.
You can create an infrastructure for assigning a domain name to a VM with a web server using one of the following tools:
- Management console, CLI, or API: Use the Yandex Cloud management console, CLI, or API to create your infrastructure step by step.
- 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 the infrastructure using the Yandex Cloud Terraform provider
.