Edgio

Hostnames

You must register each hostname (e.g., cdn.example.com) that will be served through the Edgio network. Each hostname is mapped to an origin configuration. An origin configuration defines how our service will communicate with your web servers.
CDN-as-Code Only: If you are using CDN-as-code, then you should manage your hostnames within your edgio.config.js. Deploying your CDN-as-code configuration will update the set of hostnames listed on the Hostnames page.
Your routes determine the source from which data will be retrieved. You may retrieve content from your web servers, the Edgio cloud, which powers Edgio Sites and Cloud Functions, or Edgio Edge Functions.
Hostname and Origin Workflow
If you are using CDN-as-code, then you may serve your site through any combination of your web server(s), the Edgio cloud, or Edgio Edge Functions.
Hostname, Origin, and Cloud Workflow

Setup

On a per environment-basis, define each hostname that will be served through Edgio.
Key information:
  • Specify hostnames using lower-case letters.
  • Hostnames must be unique across all environments.
    For example, if you have defined www.example.com within the production environment, then you cannot define it within any other environment until you delete it from the production environment.
  • Each hostname is mapped to an origin configuration. By default, Edgio proxies cache misses for that hostname to that origin configuration. Override this mapping through the Set Origin feature.
CDN-as-Code Only: If you are using CDN-as-code, then your routes determine the source from which data will be retrieved. Define an origin configuration as a source through the set_origin feature.
  • Set up support for HTTPS delivery for each of your hostnames.
  • Once you are ready to serve traffic through Edgio, update the hostname’s DNS configuration to point to our service.
    If your hostname is at the zone apex (e.g., example.com), then you will need a DNS service provider that supports defining a CNAME record at the zone apex. Learn how to set this up through Route.
To add, modify, or delete hostnames from an environment through the Edgio Console
  1. Load the Hostnames page.
    1. From the Edgio Console, select the desired private space or organization.
    2. Select the desired property.
    3. From the left-hand pane, select the desired environment from under the Environments section.
    4. From the left-hand pane, select Hostnames.
  2. Perform one of the following steps:
    • Add a Hostname:
      1. Click + Add hostname.
      2. Add each desired hostname on a separate line.
      Add Hostnames
      1. Click Add Hostnames.
    • Assign an Origin: Map a hostname to a different origin by selecting the desired origin from under the Default Origin column.
      The Default Origin column is read-only when the current property only contains a single origin configuration (e.g., web).
    • Modify a Hostname: Modify an existing hostname by replacing the existing hostname with a new value.
      Hostnames
    • Delete a Hostname: Click
      Delete icon
      next to the hostname that should be deleted.
  3. Repeat step 2 as needed.
  4. If you are finished making changes to this environment, click Deploy Changes.
To add, modify, or delete hostnames within your CDN-as-code configuration
This procedure is only applicable if you are using CDN-as-code.
Define the desired hostnames within the <ENV_NAME>.hostnames key.
JavaScriptedgio.config.js
1module.exports = {
2 /* ... */
3 environments: {
4 production: {
5 hostnames: [{hostname: 'cdn.example.com'},{hostname: 'resources.example.com'}],
6 },
7 /* ... */
8};

HTTPS Traffic

Each hostname requires the installation of a TLS certificate on our network. Set up TLS support through either of the following methods:
  • Automatic Installation: Edgio can automatically generate and install a TLS certificate when both of the following requirements are met:
    • Certificate Authority Authorization: The Let’s Encrypt certificate authority (CA) must be allowed to issue certificates for that hostname. It is allowed to issue certificates when either of the following conditions are true:
      • A CAA record has not been issued for that hostname or a parent hostname. This DNS configuration means that any CA is allowed to generate certificates for that hostname.
      • A CAA record explicitly allows the Let’s Encrypt CA to generate certificates for that hostname.
      This sample CAA record indicates that the Let’s Encrypt CA is allowed to issue certificates for cdn.example.com:
      cdn.example.com. CAA 0 issue "letsencrypt.org"
    • Domain Control Validation: Prove your control over that domain by adding an _acme-challenge CNAME record to it.
      Example: _acme-challenge.cdn.example.com. CNAME _acme-challenge.xdn-validation.com.
  • Bring Your Own Certificate (BYOC): Upload your own TLS certificate.