Quick Start - VOD: CDN


This page contains a guide on how to quickly get started with our CDN.
It describes in a few steps how to setup an Origin and a Pull Zone.


In this Quick Start guide we will show you how to set up a basic CDN for Video on Demand by setting up an Origin and a Pull zone.

Video on Demand zone

If you have pre-recorded video in FLV or MP4 format, you should select this zone type. It supports pseudo streaming (seeking to not-yet-downloaded portions of a video) and is optimized towards larger video files. Typically used for video-heavy websites where the files can be cached for a longer time.  

Dashboard introduction

This video briefly shows you the extensive functionality of our easy-to-use CDN control panel.

Step 1: Logging in

Perform the following steps to log in to the CDN Control Panel:

  1. Go to the CDN Control Panel (http://my.leasewebcdn.com).
    The login screen for the CDN Control Panel displays. 

  2. Log in to the CDN Control Panel using your customer number and password that you received in your CDN setup email.

    If you are a existing customer of LeaseWeb with access to our Customer Portal (http://secure.leaseweb.com), your CDN credentials might be different.

  3. Click the "Login" button.

Step 2: Adding an Origin

The Origin server is the original server that hosts your content. The LeaseWeb CDN will pull from this server and accelerate the delivery and enhance the user experience.

  1. In the menu bar, under "Manage Zones", select "Origin".

    The Origin page displays. 

  2. Click the "Add" button.
    Add the Label and Origin url. (for example, Label: My example website, Origin: http://origin.example.com)

    Do not add a trailing slash ( / ) to the origin url.

    If you want to edit the Advanced setting, you can read more about them here

  3. Click the "Save" button.

You have added an Origin and can now set up your Pull Zone.

Step 3: Adding a Pull Zone / Domain

A Pull Zone is typically an end-user facing domain that is accelerated by LeaseWeb CDN with a specific set of properties.

This video briefly shows you how to configure a Pull zone. Below you can find a step by step guide describing the process.

  1. In the menu bar, under "Manage Zones", select "Pull Zones".

    The Pull Zones page displays. 

  2. Click the "Add" button.

    Our CDN infrastructure is optimised for caching different types of content.
    Please select from the following list the option which suits your websites needs.

  3. Click the "Add Video on demand zone" button.

  4. Enter the hostname that will be used by the CDN in the "CNAME" field and select the origin we created in step 2

    Field NameDescription
    StatusCDN Zone can be Activate or Inactivate. The zone needs to be activated in order to serve traffic.
    TargetThe Target is the CDN Domain where the CNAME points to. The URL is calculated from your CNAME value.

    A CNAME, or Canonical Name record, is an entry within the Domain Name System (DNS) that specifies where a user can find your web pages. A CNAME is required to associate your domain with your CDN service.
    For example, you first create a CDN Zone and then create a DNS record for your domain (e.g. origin.example.com) and point it to the CDN Domain of your zone (e.g. a2a23913007f60933db72f23f7462584.lswcdn.net). 


    Defines the URL (HTTP) of the customer’s source, on domain level.
    Example: http://origin.example.com 
    Content will be pulled from the customer’s origin and cached on the LeaseWeb CDN network when it is served to end-user for the first time. A request for http://origin.example.com/file.mp4  will be fetched from http://origin.example.com/file.mp4  and cached on the platform.

    If you want to edit the Advanced setting, you can read more about them here

  5. Click the "Save button.

Step 4: Testing the CNAME

Now that you have successfully created a CNAME for your domain it is time to test if it works.

  1. First view the Pull zone you just created and copy the CNAME Target.

  2. Open up a browser and paste the CNAME into your browsers address bar. 
    Confirm the webpage loads correctly
  3. Now add a trailing file to the url e.g: a2a23913007f60933db72f23f7462584.lswcdn.net/file.mp4
  4. If the file loads correctly you have successfully set up the Pull Zone to point towards your domain
  5. If you notice something is not as you expected send an email to our support team: support@leaseweb.com

Step 5: Changing your DNS

Now that you have set up a Pull Zone you can start redirecting traffic to the LeaseWeb CDN. To do this you have to make a change to the DNS on your hosting. The following example uses cPanel to make the DNS change.

  1. Log into your domain's cPanel and search for "DNS",
    Select "Simple DNS Zone Editor" or "Advanced DNS Zone Editor".

  2. Fill in the fields as displayed below using your own 'Name' and 'CNAME".

  3. Click 'Add CNAME Record'

  1. Log into your domain's DirectAdmin and click on the 'DNS Management' link.

  2. Scroll down to "Add Domain Records" and fill in the fields next to "CNAME".


    The domain record should only consist of the name of the domain your wish to forward (i.e. origin when the domain is origin.example.com)

    Note: Your domain provider might require you to add a trailing . in the CNAME field.

  3. Click the "Add" button next to the fields you filled in.

Your DNS should now be configured to point to the LeaseWeb CDN

Step 6: Submitting the SSL Certificate request (optional)

If you want to use secure content (HTTPS) LeaseWeb CDN requires a valid SSL Certificate to be able to contact your origin server. This SSL Certificate must be maintained valid on the origin server.
LeaseWeb CDN requires your Private KeyPublic Key and additional Intermediate Certificates in order to be able to connect to your secure content origin server. You can provide this information by creating a ticket in the LeaseWeb Customer Portal.

First head over to https://secure.leasewebcdn.com and log in with your LeaseWeb Customer Portal credentials.

When you have successfully logged in click on the 'Tickets' button in the Shortcuts menu.

To create a new ticket, click the 'Create a new Ticket' button.

Fill in the menu items for 'Send to*', 'Topic*' and 'Other' as displayed in the image below.
In the message please include your: Private KeyPublic Key and additional Intermediate Certificates.

Click the 'SEND' button to create a new ticket.

You will be updated by a LeaseWeb engineer when the SSL Certificate has been successfully added.
Once the SSL Certificate is ready to be used you will be able to select it in the Advanced settings of your pull zone.

Now you have all you need for a basic CDN. There are, of course, a lot of other things you can change, and one of them is setting up a Push Zone. 
You can read more about setting up a Push zone here