Quick Start - Small files: CDN

Description

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.


Contents


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

Small files zone

Typically, a website has some thumbnails, CSS, javascript, banners and other images that make up the look and feel of your online prescence.  These are usually quite small (less than 10mb) and are perfect for our "Small files" CDN infrastructure.  This infrastructure is optimised for these smaller files and will ensure the best user experience and speed.  


HTTP/2 support

HTTP/2 is supported by small files zones. It is not required to enable it in CDN control panel as it is always on.


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) be aware that the CDN credentials might differ.

  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.

    For now, just add the label and origin url. (e.g: 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 are now done with adding 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.



  3. Click the "Add Small files 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 Name Description
    Status CDN Zone can be Activate or Inactivate. The zone needs to be activated in order to serve traffic.
    Target The Target is the CDN Domain where the CNAME points to. The URL is calculated from your CNAME value.
    CNAME

    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). 

    Origin

    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.jpg will be fetched from http://origin.example.com/file.jpg 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.jpg
  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.
Here you can find guides on how to change the DNS on a few popular hosting managers:

  cPanel
  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'


  DirectAdmin
  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 added.