An origin configuration defines how Edgio communicates with your web server(s).
CDN-as-Code Only: If you are using CDN-as-code, then you should manage your origin configurations within your edgio.config.js. Deploying your CDN-as-code configuration will update the set of origin configurations listed on the Origins page.
In addition to your custom origin configurations, Edgio automatically creates system-defined origin configurations for our cloud infrastructure as part of your initial CDN-as-code deployment. Do not modify these system-defined origin configurations.
Setup
Create an origin configuration for each desired grouping of web server(s).
Key information:
-
Each origin configuration identifies a set of web server(s) by hostname or IP address. You may specify up to 4 hostnames or IP addresses.
-
Load balance requests to the web servers associated with an origin configuration using either primary/failover or round-robin mode.
-
By default, our CDN forwards the
Host
header provided by the client when proxying requests to your origin server(s). You may override the client’sHost
header by setting the Override Host Header option to the desired hostname. This forces our CDN to set theHost
header to the specified hostname whenever it proxies traffic to the origin server(s) associated with this origin configuration.Overriding theHost
header is useful when your origin implementation uses multiple virtual hosts or a virtual host with multiple aliases. -
Malicious actors may bypass the security provided by our service by directly targeting your origin server(s). We strongly recommend that you set up your firewall to only allow traffic from trusted sources (e.g., our network) and to obfuscate your origin.
-
Load the Origins page.
- From the Edgio Console, select the desired private space or organization.
- Select the desired property.
- From the left-hand pane, select the desired environment from under the Environments section.
- From the left-hand pane, select Origins.
-
Click + Add Origin.
-
In the Name option, assign a name to this origin configuration. This name should only consist of alphanumeric characters, hyphens, periods, and underscores.We recommend a unique, descriptive name to help you quickly map hostname(s) to this origin configuration.
-
Define one or more host(s). Each host determines how Edgio will communicate with your web server(s).
- In the Origin Hostname option, type a hostname or IP address that points to your web server(s).
- Optional. Set the Port option to the port over which our network will serve traffic to the above hostname or IP address.
- Optional. Set the IP Version Preference option to define a preference on how Edgio will resolve a hostname defined within the Origin Hostname option.
- Set the Scheme option to always serve traffic to your hosts over HTTPS, HTTP, or to match the client’s scheme. Matching a client’s scheme means that our network will serve HTTP traffic to your web servers over port 80, while HTTPS traffic will be served over port 443.
- Optional. Override the client’s Host header by setting the Override Host Header option to the desired hostname.
- Optional. Add another host to this origin configuration by clicking + Add Host and then performing steps 4.i - 4.v.
- Optional. Set the Balancer type option to the desired load balancing mode for requests proxied to your web servers.
-
Define TLS settings for this origin configuration through the Origin TLS Settings section.
-
Most web servers require a SNI hint during the TLS handshake. Define this SNI hint through the Use SNI hint and enforce origin SAN/CN checking option. By default, this option is set to the value assigned to the Override Host Header option.Perform either of the following steps:
-
If your web server requires a SNI hint, enable the Use SNI option and then verify or set the SNI hint through the Use SNI hint and enforce origin SAN/CN checking option.Upon enabling SNI, our service will perform a strict check using this hostname against the certificate’s Subject Alternative Name (SAN) or Common Name (CN) during the TLS handshake.
-
If your web server does not use SNI, then you should disable both SNI options. You should also verify that the Use the following SNI hint and enforce origin SAN/CN checking option is set to a blank value.
-
-
If your origin servers use a self-signed certificate, then you should toggle the Allow Self Signed Certs option to the on position (). Otherwise, this option should be disabled.
-
Set up certificate pinning by adding one or more public keys.
- Click + Add Pin.
- Paste the SHA-1 digest for the public key of your leaf certificate.
- Repeat steps 1 and 2 as needed.
-
-
Optional. Protect your origin by defining one or more shield POP(s). Click on the Shields section to expand it.
-
Assign a POP location to the region closest to your web server(s).Upon configuring a region, all other regions will be updated from
Bypass
to the selected POP. This configuration means that cache misses from all regions will be proxied to the selected POP location. -
Optional. Assign a POP location to a different region.Upon configuring a second region, the remaining regions are automatically updated from the selected POP to
Use the shield with the lowest RTT
. This configuration means that cache misses from the remaining regions will be proxied to the shield POP that will provide the best performance.For example, the following configuration may potentially allow cache misses from the APAC region to be served through the shield location defined for the US West region (i.e.,OXR
). -
Optional. Repeat step 2 as needed.
-
Optional. Configure cache misses from a specific region to always be proxied to your origin by selecting
Bypass
.
-
-
Optional. Advanced Configuration. Customize whether Edgio will submit retry requests for specific status codes through the Retry Status Codes section.
-
If you are finished making changes to this environment, click Deploy Changes.
Origin TLS Settings
An origin configuration’s TLS settings determine how Edgio will communicate with your web servers during the TLS handshake.
-
SNI: An origin configuration’s Use SNI and the Use SNI hint and enforce origin SAN/CN checking options determine whether Edgio will:
- Perform a strict check using the hostname defined within this option against the certificate’s Subject Alternative Name (SAN) or Common Name (CN) during the TLS handshake. If the hostname does not match, then we will respond with a
502 Bad Gateway
response. - Provide a Server Name Indication (SNI) hint to your origin server during the TLS handshake. A SNI-enabled web server uses a SNI hint to determine the TLS certificate that will be returned.
- Perform a strict check using the hostname defined within this option against the certificate’s Subject Alternative Name (SAN) or Common Name (CN) during the TLS handshake. If the hostname does not match, then we will respond with a
-
Register the SHA-1 digest for the public key of your end-entity (i.e., leaf) certificate within the Pinned Cert(s) option. After which, our edge servers will respond with a
502 Bad Gateway
response when the SHA-1 digest for the public key detected from the origin server does not match one of the pinned certificates.
Retry Requests
By default, Edgio submits retry requests when an origin is unavailable. Customize this behavior and extend it to other status codes by setting the Retry Status Codes setting to one or more status code(s) (e.g.,
429
, 502
, and 503
). After which, define the retry behavior for those status codes through the following settings:-
The number of seconds that our edge servers will wait before retry: Determines the number of seconds that our edge servers will wait before retrying a request to that origin entry. If the retry request results in the same status code, then our edge servers will wait a slightly longer time before retrying the request again.
-
Maximum number of request retries: Determines the maximum number of attempts that Edgio will make to connect to that origin entry.
-
The maximum number of seconds our edge servers will wait before retry: Sets the maximum number of seconds that Edgio will wait between attempts to connect to an origin entry.Additionally, if the Ignore the Retry-After origin response header is disabled and the
Retry-After
response header returns a value larger than this setting, then Edgio will stop retrying the request and respond to the client with the response provided by the origin server. -
Ignore the Retry-After origin response header: Determines whether Edgio will ignore the
Retry-After
response header for this origin configuration.- Enabled: Edgio will ignore the
Retry-After
header provided in the response. - Disabled: The
Retry-After
response header takes precedence over the origin configuration’s The number of seconds that our edge servers will wait before retry setting. This setting will only be applicable when theRetry-After
header is missing from the response.
- Enabled: Edgio will ignore the
The Retry Status Codes section contains advanced settings that should only be modified by expert users. Improper configuration of these settings may introduce unnecessary latency and impact your site’s performance.
System-Defined Origins
Edgio will add the following origin configurations for properties deployed using our CDN-as-code (EdgeJS) approach:
These system-defined origins should not be modified or deleted.
edgio_image_optimizer
: Used for serving images through the image optimization feature.edgio_permanent_static
: Used for serving static assets configured to persist across deployments.edgio_serverless
: Used for serving requests through the Edgio cloud.edgio_self
: Refers to the current environment and is used in Edge Functions for issuing fetch requests to itself.edgio_static
: Used for serving static assets.
HTTP/3
Enable HTTP/3, which uses QUIC as the transport protocol, by setting the
alt-svc
header in the response sent to the client to %{quic_altsvc_versions}
. This response header informs the client that it may communicate with the CDN through QUIC, the set of supported QUIC versions, and the length of time that this data should be cached by the client.Example:
alt-svc: %{quic_altsvc_versions}
Key information:
-
Once a QUIC-compatible user agent discovers that a server supports QUIC, it will attempt to leverage QUIC for all subsequent requests to the same domain until the connection ends.
-
By default, QUIC is supported on the latest versions of Google Chrome, Chromium, and Opera. However, it may require enablement. If a user agent doesn’t support QUIC, then it will communicate with the CDN using HTTP/2 over TCP.
-
Our QUIC implementation supports the Bottleneck Bandwidth and Round-trip propagation time (BBR) congestion control algorithm without requiring additional CDN setup. However, BBR will only be used when a QUIC-enabled client (e.g., Google Chrome) requests it.
-
We strongly recommend that you define the
alt-svc
response header through the Set Response Headers (set_response_headers) feature and set the value to the%{quic_altsvc_versions}
variable. This variable returns the QUIC versions supported by our service.We may add or drop support for QUIC versions at any time. Ensure that you only advertise supported versions through the%{quic_altsvc_versions}
variable. -
Sample alt-svc header name/value:
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
The above sample response header indicates to the client that:- HTTP/3 is only supported for traffic over port 443 as defined by the
h3
parameter. - The user agent should treat the connection as fresh for 2,592,000 seconds (i.e., 30 days) as determined by the
ma
(max-age) parameter.
- HTTP/3 is only supported for traffic over port 443 as defined by the
Load Balancing
Edgio load balances traffic proxied from our network to the web servers associated with an origin configuration using either primary/failover or round-robin mode.
Key information:
-
Edgio generates a list of IP addresses by resolving the hostnames associated with an origin configuration. These IP addresses are listed according to the order in which the corresponding hosts are listed within your origin configuration.
-
If an origin configuration allows Edgio to proxy requests using both HTTP and HTTPS, then Edgio will generate an ordered list of IP addresses for each HTTP scheme.
-
The available load balancing options are:
-
Primary/Failover: This load balancing mode requires Edgio to:
- Proxy all traffic to the first IP address in the list.
- If the current server is unavailable, then Edgio will issue another request to the next IP address on the list. This step is repeated until a server is able to honor the request.
Set up primary/failover load balancing by selectingPrimary failover
from the Balancer type option. -
Round-robin: This mode distributes requests evenly across all IP addresses. If a server is unavailable, then the request will be sent to the next IP address on the list.Set up round-robin load balancing by selecting
Round robin
from the Balancer type option.
-
-
The above load-balancing options are completely independent from any load balancing configuration that may already distribute traffic to your web servers. For instance, traffic for a single IP address might be load balanced across several physical servers.
Unavailable Servers
A server is considered unavailable when either of the following conditions are true:
- A TCP connection is refused.
- The connection times out.
By default, an unavailable server affects load balancing as described below.
- Once a server is designated as unavailable, CDN traffic will not be load balanced to the corresponding hostname or IP address for a brief time period.
- Upon the expiration of this time period, CDN traffic may once again flow through the corresponding hostname or IP address according to its position within your origin configuration.
- If the server is still unavailable, then CDN traffic will not be load balanced to the corresponding hostname or IP address for a brief, but slightly longer time period.
- Steps 2 and 3 repeat until the server becomes available.
Override this behavior through an origin configuration’s Retry Status Codes settings.
Origin Hostname Resolution
Before Edgio can proxy requests to your origin, it must resolve each hostname set within an origin configuration’s Origin Hostname option. The IP Version Preference option determines whether our servers will prefer to resolve a hostname to an IPv4 or IPv6 address.
Configuration | Description |
---|---|
IPv4 Preferred | Indicates that our edge servers will resolve hostnames to IPv4 addresses whenever possible. If an IPv4 address for that hostname does not exist, then the hostname will be resolved to an IPv6 address. |
IPv6 Preferred | Indicates that our edge servers will resolve hostnames to IPv6 addresses whenever possible. If an IPv6 address for that hostname does not exist, then the hostname will be resolved to an IPv4 address. |
IPv4 Only | Indicates that hostnames will only be resolved to IPv4 addresses. |
IPv6 Only | Indicates that hostnames will only be resolved to IPv6 addresses. |