Common Settings

Open the settings of a CDN resource by clicking on the resource block.

Default Domain

After creating the CDN resource, a «default domain» of the form ***.selcdn.net or ***.akamaized.net will be generated, depending on the selected provider. You can see the «default domain» on the Domains tab.

Through the «default domain» content is distributed via https. For example, on the main server (content source), in the «photos» folder there is a cat.jpg file. In order to distribute this file via CDN, you can use an address of the form ***.selcdn.net/photos/cat.jpg.

Personal Domain

In addition to distributing through the «default domain», it is possible to connect a «personal domain» and distribute files through it.

To add a «personal domain» in the CDN-resource card, go to the Domains tab, click Attach domain and enter the domain name.

Please note that you can use at least third level domains as «personal domains».

To activate the «personal domain», create a CNAME record at your DNS provider.

SSL Certificates

An SSL certificate is a unique digital signature of your website that is needed to create a secure channel between the client and the server, which is especially important when transferring confidential information and conducting financial transactions (HTTPS protocol).

The «default domain» is covered by the General Certificate and distribution is carried out using the https protocol. When using a personal domain and distributing via the https protocol, you need to upload your SSL certificate.

Please note that Akamai cannot use its own certificates.

At the moment of connecting your own SSL Certificate, content distribution through the «default domain» will begin using the http protocol, since only one certificate can be active at a time.

Adding a Personal SSL Certificate

To add a personal SSL certificate:

  1. Go to the Resources tab in the Control panel.
  2. Open the CDN resource card.
  3. Go to the Certificates tab.
  4. Click Add SSL certificate.

  5. Specify the certificate in PEM format and a private key.

  6. Click Submit.

The certificate will be linked to the resource and also added to the list of personal certificates in the SSL Certificates section of the CDN service.

Adding Multiple Content Origins

If you select your web server as the content source, you can add additional content sources. Follow these steps:

  1. Click Edit origin.
  2. Enter Domain and Port of the domain connection.
  3. Save your changes.

Please note that Akamai cannot use multiple content sources.

Host Header

Host header is the header that CDN servers use when requesting content from a source. It allows you to configure the flexible delivery of content depending on the value of the header.

There are two options for configuring the Host header:

  • **Custom Host header ** — this option is selected by default when creating a resource. The Host header value is automatically substituted depending on the data source. You can enter your own header value.
  • Forward Host header — when requesting a source, the Host header will leave the value that came in the CDN request.

The content source server should allow requests with the specified header. To verify that the title is correct, enter the following command:

curl -I -H "Host:cdn.site.com" https://origin.site.com

, where

  • cdn.site.com is the header indicated in Host header;
  • https://site.ru is the domain or original IP.

Verify that the server can handle the specified header.

Сontent Compression

Content compression will reduce content delivery time. Depending on the request parameters, the client will receive a compressed or uncompressed file:

  • On CDN-servers — files will be compressed on CDN servers using gzip;
  • At source — files will be compressed on the source.

File extensions that support compression:

  • text/plain
  • text/css
  • text/html
  • application/x-javascript
  • text/xml
  • application/xml
  • application/xml+rss
  • text/javascript
  • application/json
  • application/javascript

Image file formats (jpeg, jpg, png) supported by web files, as well as videos, PDFs and other binary formats, are already compressed. Using gzip on them does not provide additional benefits.