Connecting a domain to a web server
Last updated
Last updated
Link your domain to CloudFlare, to do this:
Go to
Register and confirm your email
Click Add Domain, enter your domain name, select a free plan and set up the specified DNS in your registrar
Wait a few hours (on average up to 3) until the DNS updates. After that, a message about the activation of the domain in Cloudflare will be sent to your email
Go to the DNS tab in Cloudflare
Create a DNS record:
Type: CNAME
or A
Name: domain, if you want to create a record on the root of the domain use @
Target: your node address, for example node.domain.com
Proxy: leave it on
Go to the tab Rules -> Origin Rules
Click Create rule
:
Enter any name
Field: Hostname
Operator: Equals
Value: your domain name, for example domain.com
Select Rewrite to
and specify the port of your web server (online map, site)
Click Deploy 🎉 Done! You have connected the domain to the web server.