Skip to main content

Managing CDN Recources

Edit a CDN Resource

  1. On the CDN Resources page, click the required CDN Resource you want to edit.
  2. On the page that appears, you can edit all CDN resource parameters.
  3. In the CDN Resource, you can edit Prefetch, Purge, Wildcard Invalidations, HTTP Caching Rules an WAF options.

Prefetch

  1. On the CDN Resource page, click the "Prefetch" button.
  2. In the Paths to Prefetch field, specify the destination path(s). You can enter only one path per line.
  3. Click "Prefetch"

Purge

This tool allows instant removal of HTTP Pull and HTTP Push cache content in the CDN if newly updated content has not been properly replicated.

  1. On the CDN Resource page, click the "Purge" button.
  2. In the "Paths to Purge" field, specify the destination path(s). You can enter only one path per line.
note

You can specify a maximum of 1,300 paths in the Paths to Purge field.

  1. Click "Purge"

Wildcard Invalidations

Wildcard invalidation is an effective tool that allows you to remove certain folders or all the CSS files from the cache. You can purge all files in a folder, all files and folders that start with certain characters and all files of a certain format (e.g. PNG) in a folder. You can launch the invalidation process multiple times for a rule you specify. Wildcard invalidation is available only for HTTP Pull and HTTP Push resources and you can set up to five wildcard invalidation rules for a resource.

Create Wildcard Invalidation Rules

  1. On the Wildcard Invalidations page, click the "+" icon.
  2. In the input field, specify the path to the cached files that are to be invalidated. You may indicate only one path per line. You can set up to five invalidation rules per resource.
  3. Click the "+" button to add the rule. Once you add the rule, the files for which you have indicated the path in this rule, will be invalidated.

Delete Wildcard Invalidation Rules

  • On the Wildcard Invalidations page, click "trash" icon next to the required wildcard invalidation rule.

Billing Statistics

DT Cloud has a record of all the charges applied to your CDN resources. You can view the resource statistics under the statistics available or those for a shorter period by setting the start and end time.

  • To view billing statistics for a CDN resource:
  1. Click the "Billing Statistics" tab.
  2. Set the start and end time.
  3. Select the Show in my timezone checkbox to view the billing statistics according to your profile's timezone settings.
  4. Click the "Apply" button.
  5. On the screen that appears, you will see the following billing statistics details:
    • Date
    • Edge Group
    • Traffic
    • Cost

Scroll down to see the total due for the whole billing statistics period specified in the Total amount field.

HTTP Caching Rules

The HTTP Rules engine allows users to customize the CDN edge server behavior, e.g. how the CDN will manage cache and redirection. This creates a lot of flexibility and adaptability for different platform websites to integrate with CDN without much hassle.

A CDN resource can be configured with up to 100 rules. This is collectively called a ruleset. A rule consists of conditions and actions. A condition consists of a subject, which determines the value to select, and a predicate, which specifies what to compare the subject against. Conditions are bonded by the connectives “AND” or “OR”. When all the conditions are met, the CDN edge server will perform the actions associated with the rule. The CDN edge server processes these rules from top to bottom order. It ends processing on the first match.

Create HTTP Rules

  1. On the HTTP Cachin Rules page, click the "Create New Rules" button and fill in the following:
    • Rule name
    • Conditions: select the appropriate option from the Connective, Subject, and Predicate drop-down lists and specify Value. To specify additional conditions.
    • Actions: choose the appropriate action to take place from the Act drop-down list. Click "+" button to add some more actions which should take place when the conditions are met.
  2. Click "Save"

Web Application Firewall (WAF)

Web Application Firewall (WAF) monitors, filters or blocks the traffic to and from a web application. A WAF inspects every HTML, HTTPS, SOAP and XML-RPC data packet. This firewall enables preventing attacks such as cross-site scripting (XSS), SQL injection, session hijacking, and buffer overflows through customizable web security rules.

  • On the CDN Resource page, click the "WAF" tab. Move the WAF slider to enable/disable the protection. And then click the "Update" button.

CNAME

Verify CNAME Status

  • To check the status of a CNAME in Unix systems, use the Linux command:

dig +trace cdn.yourdomain.com

Here is the example below:

cdn.yourdomain.com. 300 IN CNAME [ ID].r.yourhostdomain.com.

  • To check the status of a CNAME in Windows systems, press the Windows logo key and type cmd in the search box. In a Command Prompt window, type the following command:

nslookup cdn.yourdomain.com

Here is the example below:

C:\Users\admin>nslookup cdn.yourdomain.com
Server: UnKnown
Address: 192.168.10.2

Non-authoritative answer:
Name: [ id].r.cdnline.net
Address: 110.4.45.229
Aliases: cdn.yourdomain.com

Customize CNAME

Go to your DNS registrar and delegate your desired domain (e.g., customercnamedomain.net) NS records to ns1.dtcloudns.com, ns2.dtcloudns.com, ns3.dtcloudns.com, and ns4.dtcloudns.com. If the NS is not delegated properly, the Domain is not added successfully error appears on the Dashboard.

  • To customize CDN domain;
    1. Go to your Dashboard and click CDN button.
    2. On the following page, click on the CDN Management drop-down list and select Domain Setting.
    3. On the page that apperars, you can edit the "CDN Base Domain".
    4. Click Ok to save the changes. The system will validate whether the domain has been delegated properly.