Registration of a domain name for the web server of the SAYMON server
Before installation and configuration of an SSL certificate, a domain name (for example, example.com) should be registered. You can register a domain name with the primary and/or secondary DNS hosting. For this, you can contact any domain name registrar.
If you choose only the secondary DNS hosting, you will need to configure a primary DNS server locally.
Before you register a domain name, it is necessary to obtain a fixed IP address from the provider. |
Configuration of primary DNS server
Configure the following records:
-
the A record, where
example.com
points to your server’s public IP address; -
the A record, where
www.example.com
points to your server’s public IP address.
You need to create a server block for a domain (for example, /etc/nginx/sites-available/example.com).
You also need to open port 80 for HTTP and port 443 for HTTPS.
Example of how to open ports in ufw:
$ sudo ufw allow 80
$ sudo ufw allow 443