Add an origin

An origin is the source your Akamai edge servers fetch content from.

Delivery Manager creates your first origin automatically when you create a workspace. Add further origins when you need to serve content from more than one source, for example static assets from NetStorage and dynamic responses from your own server.

📘

Adding an origin doesn't route traffic to it

Requests only reach your origin once an environment version selects it, and once that version is activated. See After you add the origin.

Before you begin

Review Prepare your origin server and complete the prerequisites for your origin type. Gathering required values may depend on systems outside Akamai.

Have these ready before you start.

Origin typeWhat you need
Your origin (custom)An origin hostname published in public DNS and resolving externally, a certificate installed on your origin and valid for that hostname, and the HTTP and HTTPS ports your origin listens on.
Your origin (third-party cloud storage)The provider-assigned hostname for your bucket, and an access key in Cloud Access Manager created for the matching authentication method.
NetStorageA storage group, an upload account, uploaded content, and the CP code assigned to the upload directory. No certificate is required. Contact your account team to confirm availability or have it added to your contract.
Akamai Object StorageThe bucket endpoint, and an access key in Cloud Access Manager created with the Akamai Object Storage authentication method. Contact your account team to confirm availability or have it added to your contract.
🚧

Create access keys first

If your origin authenticates with an access key, create the key in Cloud Access Manager before you add the origin. Activation takes up to 10 minutes, and the key doesn't appear in Delivery Manager until it's active. See Create an access key.

This applies to Akamai Signature Header Authentication as well as the cloud storage methods. All four authenticated methods are configured by selecting an access key.

How to

  1. From the Control Center menu, click Content delivery > CDN > Delivery Manager.

  2. In the Workspaces page, click the workspace that contains the environment you want to edit.

  3. Go to the Environments tab, and click the environment you want to edit.

  4. Go to the Origins tab, and click Add origin.

  5. Enter the Origin name, starting with a lowercase letter. Use lowercase letters, numbers, and hyphens for the rest, keeping it at least 2 and at most 255 characters long. Dash-delimited lowercase alphanumeric names, such as prod-netstorage-images, are portable across the interface, the API, and Terraform.

    This name identifies the origin inside Delivery Manager. It isn't sent to your origin server and end users never see it. Rules and environment versions refer to the origin by this name, so choose something that describes the source rather than the environment it's used in. For example, netstorage-images rather than staging-origin.

    The name must also be unique within your account, not just within the workspace. If it's rejected as already taken, another workspace in the account may be using it. Treat the name as permanent: in the Delivery Manager API, originName is write-once.

  6. Select the Origin type.

    • Your origin. A physical, cloud, or third-party server that you own and maintain. It stores your original content, which Akamai edge servers fetch to serve to end users.

    • NetStorage. This is Akamai's secure, cloud-based storage service.

    • Akamai Object Storage. You can use Akamai Object Storage as the origin server, and Cloud Access Manager (CAM) for authentication. In this case, you can create an access key using the CAM interface or the API.

    📘

    Third-party origins use Your origin

    There's no separate type for third-party cloud storage. To use Amazon Web Services or Interoperability Google Cloud Storage as your origin, select Your origin, enter the hostname your provider assigned to the bucket, and select the matching authentication method in step 9.

  7. Depending on your origin type, specify one of these:

    • NetStorage: Select the NetStorage Account. The list shows the storage groups available on your contract. Selecting a storage group supplies the download domain and CP code that edge servers use to reach it, so you don't enter a hostname. If your storage group isn't listed, confirm that NetStorage is enabled on the contract tied to this workspace and that the storage group has finished provisioning.

    • Your origin: Enter the Origin server hostname URL. This is the hostname edge servers resolve to find your content, not the service hostname your end users request. For a custom origin, it's the dedicated origin hostname you published in DNS. For third-party cloud storage, it's the full hostname your provider assigned to the bucket, such as example-bucket.s3.us-east-1.amazonaws.com.

      🚧

      Akamai strongly advises against using your origin server's IP address, as any address changes or reassignments might make your origin unreachable and result in a denial of service.

      The hostname must also resolve to an externally routable address. Edge servers can't reach the reserved ranges 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, or 192.168.0.0–192.168.255.255, whether you enter them directly or your hostname resolves to one.

    • Akamai Object Storage: Enter the Akamai Object Storage origin. Use the bucket endpoint in the form {bucket-label}.{region}.linodeobjects.com, for example example-bucket.us-ord-10.linodeobjects.com. The region must match the region the bucket was created in. A mismatched region fails signature validation rather than returning a clear not-found error. To find the endpoint, see Use URLs for access.

    This field supports variables. Insert one to hold a hostname that differs between environments, so the same origin definition works across your workspace.

  8. Specify the Base path to map edge requests to specific directory structures on your backend origin server.

    This prefixes the URLs sent to your origin, defining exactly where content resides on your server. Ensure the path both starts and ends with a slash, such as /images/ or /assets/. For example, a base path of /images/ maps a request for /picture.jpg to origin.com/images/picture.jpg.

    Leave the base path empty if your content sits at the root of your origin. For NetStorage origins, the base path is relative to the CP code directory in your storage group, not to the root of the storage group.

    This field supports variables.


    🚧

    • The base path changes the cache key. Content is cached under a key that includes the base path. Changing the base path on an origin that's already serving traffic makes the existing cached content unreachable, so edge servers refetch everything. Expect a spike in origin traffic until the cache repopulates. Make base path changes during a low-traffic window, and activate them on staging first.
    • Rules can't override the base path. The base path applies to every request this origin serves. Rules that rewrite the request path append to it rather than replace it. If your base path is /images/ and a rule rewrites a path to /gifs/hello.gif, the request your origin receives is origin.com/images/gifs/hello.gif.
  9. Select the Authentication method.

    This controls how edge servers prove to your origin that a request came from your Akamai configuration. It's separate from origin SSL certificate verification, which is how edge servers verify your origin's identity. You configure that after the origin is added, in Configure origin settings.

    • None. This is the default and applies to you if your origin doesn't have any external authentication requirements.

    • Akamai Signature Header Authentication. Edge servers sign each forward request with a shared secret, and your origin validates the signature before responding. Use this to make your origin reject requests that don't come from Akamai. See Origin authentication methods.

    • Amazon Web Services. Select this if you're authenticating with this third-party cloud provider as your origin server. Edge servers use the signature version 4 signing process to authenticate your requests to this third-party cloud provider. See V4 signing process in AWS.

    • Interoperability Google Cloud Storage. Select this if you're authenticating with Google Cloud Storage (GCS) as your origin server. Edge servers use the signature version 4 signing process to authenticate your requests to this third-party cloud provider. See V4 signing process in Google Cloud Storage.

    • Akamai Object Storage. Select this to use Akamai Object Storage (AOS) as the authentication method to contact your origin server.

    Every method except None then requires you to select an Access key. The list shows only the keys on your contract that were created for the method you selected and have finished activating. Delivery Manager holds no credentials of its own: the key identifier and secret live in Cloud Access Manager, and edge servers apply them on the forward path.

    🚧

    Access keys are method-specific

    An access key is created for one authentication method. A key created for Amazon Web Services can't sign Akamai Object Storage requests, and the reverse. If the Access key list shows There are no items to display, no key on this contract matches the method you selected. Check that a key exists for that exact method, that it's finished activating, and that its deployment network matches the security level of your configuration.

  10. Select whether you want to remove the Via header from requests sent to your origin server in Akamai. This is set to Yes by default.

    Edge servers add a Via header naming the proxies a request passed through. Removing it stops those intermediary details reaching your origin. Remove the header if you don't want to disclose your CDN topology to your origin or to anything downstream of it. Keep it if your origin logs or inspects Via for diagnostics, or if an application behind your origin relies on it to detect proxied requests.

  11. Select whether you want to remove the Age header sent by your origin server in Akamai. This is set to Yes by default.

    Age tells a cache how long an object has already been held by an upstream cache. When your origin sends Age, edge servers subtract that value from the object's freshness lifetime, so the object is treated as partly stale on arrival and expires earlier than its TTL implies. That shortens cache retention and lowers offload.

    Remove the header if your origin sits behind another cache or proxy that adds Age and you want edge servers to apply the full TTL. Keep it if the upstream age is genuinely meaningful to you and you want edge expiry to account for it.

  12. Click Add origin.

After you add the origin

Adding the origin registers it. Three things still need to happen before it serves traffic.

  1. Configure its settings. The values in this topic are the ones required to create the origin. Forward host header, cache key hostname, origin SSL certificate verification, connection ports, gzip support, and true client IP headers are all set afterwards. Akamai applies defaults to each, and the defaults won't suit every origin. See Configure origin settings.

    Pay particular attention to these two, which are the most common cause of a newly added origin returning errors:

    • Forward host header. Your origin's virtual host configuration has to match what Delivery Manager sends. An origin that only answers to www.example.com returns the wrong site, or a 404, when it receives a Host header of 1hkeh1g76-www.example.com.
    • Origin SSL certificate verification. The certificate installed on your origin must be valid for the hostname edge servers verify against. A certificate issued only for your primary domain fails against a dedicated origin hostname unless that hostname is in the certificate's subject alternative name list.
  2. Reference it from an environment version. Select the origin in the environment version that should use it. An origin that no version references is inert.

  3. Activate and test. Activate the environment version on the staging network and confirm that edge servers can fetch content from the origin before you activate on production. See Test on staging.

📘

Changes affect every environment that uses the origin

Editing an origin or its settings affects every environment version that references it, including versions already active on production. Stage and test origin changes the same way you'd stage a rule change.

Next steps


Did this page help you?