(*Disclaimer: Please be advised that the following instructions may have undergone some changes due to the third-party software and plugins updates.)
The CDN module add-on for Drupal will alter URLs, so your static
content will load from the CDN servers, as opposed to your origin
server. The module provide only "Origin Pull", which is basically used as a domain name rewriting mode.
- Login to your Drupal admin panel, click Manage ⇨ Extend ⇨ Install New Module".
- In the "Install from a URL" box, enter the CDN Module URL: http://ftp.drupal.org/files/projects/cdn-8.x-3.0.tar.gz(check the official Drupal CDN Project Page for the newest stable version) and click "Install".
- Now click on Manage ⇨ Configuration ⇨ Web Services ⇨ CDN integration. In CDN settings tab tick the "Serve files from CDN" status box, then click "Save Configuration."
- Click on "Details", then select "Origin Pull". For the "CDN Mapping" box, enter the CDN URL, for example:http://10001-5.b.cdn13.com
- Click "Save Configuration"
Your website now should be using CDN services and you can confirm this by reloading your website and viewing the page source. If your Origin URL is rewritten to the CDN temporary URL you are all set.
For more information about the plugin, visit: