Introduction

The latest statistical data show that nearly 2.2% of all web sites are created and run on Drupal CMS. Drupal CMS is popular because:

  • It is able to provide its users with a high level of security as it gives a high level of control and strong database encryption.
  • It is able to scale to thousands of pages.
  • It has unlimited design possibilities.

Below you can see instructions how to enable CDN in Drupal using Drupal CDN plugin.

Before you start

  1. Since we will use the Cname address next, please ensure that you have configured the CDN resources on the console . See the following for specific configuration methods: CDN configurate

  2. If you want to integrate a CDN service on https:// pages, you must ensure that SSL is enabled on the console. For specific operations, see: Common problems.

  3. If your website has embedded custom fonts, please confirm that you have enabled the CORS headers in the LightCDN console.

Integration approach

Enable CDN in DRUPAL 8 using DRUPAL CDN PLUGIN

  1. Download the latest version of Drupal CDN.

  2. Extract it into the Drupal module directory, the enabling configuration is shown in the figure below.

  3. Navigate to Site Configuration > CDN Integtration.

  4. Under Settings tab:

    • Status: Enabled
    • Mode: Basic
    • Show statistics for the current page: Disabled
  5. Save.

  6. Under Basic Mode tab:

    • Insert the CDN URL into the field.
  7. Click Submit.

Verification

Verify if your Drupal site is on CDN by viewing the HTML source code. Image links shall be replaced with CDN URLs.

LightCDN all right reserved,powered by Gitbook Updated Time: 2022-11-03

results matching ""

    No results matching ""