Domains quickstart
Create your first domain from Azion Console or the API: name it, choose its environment, bind an application, and list the hostnames you serve.
This guide instructs you through creating your first domain in Domains. By the end you will have a domain that serves the hostnames you list and passes their requests to your application.
A domain is an entry on your account: a name, the hostnames it serves, the application that answers them, and the certificate it uses. Azion generates an Azion domain for it in the format xxxx.map.azionedge.net. The name identifies the entry and is not a hostname.
Prerequisites
- An application. To create one, refer to Applications quickstart.
- A hostname of a domain you own, and access to its DNS records at your DNS provider or in Edge DNS.
- To use the API, a personal token for the
Authorizationheader, in the formToken [TOKEN VALUE], andcurl. To create a token, refer to Personal tokens. - To use Azion Console, access to it. For more information, refer to How to access Azion Console.
Create the domain
To create the domain in Azion Console:
Access Azion Console > Domains.
Select + Domain, or select an existing domain to edit it.
Enter a name. The name identifies the entry on the account and is not a hostname.
In Environment Type, select Global Edge Network for production or Staging Network for a test environment.
In Applications, select your application. In Firewall, select your firewall.
In CNAME, list the hostnames you serve, one per line.
Leave CNAME access only off to keep the xxxxxxxxxx.map.azionedge.net address reachable, or turn it on to answer only the hostnames you listed.
In Digital Certificate, select Azion SAN or a certificate of your own.
Select Save.
Point your hostname at the domain
A listed hostname receives no traffic until DNS sends it there. Create a DNS record for the hostname that points at the address the domain answers on. For the record at each kind of DNS provider and how to check that it resolves, refer to Point a domain to a workload.