How to integrate Hostry CDN with Drupal

www.drupal.org

Please note that the CDN plugin for Drupal with change URLs, so your static content will be loaded from CDN servers instead of your origin server. The module has two modes: “File Conveyor” and “Origin Pull”, and you need to use “Origin Pull” for setting your website to use CDN – it is typically used as a domain name rewriting mode.

Login in your Drupal admin panel, choose Modules and proceed to “Install New Module”.

Find “Install from a URL” box, type the CDN module URL http://ftp.drupal.org/files/projects/cdn-7.x-2.6.zip (check the official Drupal CDN project page for the fresh versions) and Install it.

Proceed to “Configuration” and find CDN: in the General tab you will enable Radio Box and click to Save Configurations.

Select “Details” and select “Origin Pull”. In the “CDN Mapping” box you will need to enter CDN URL the following way: http://cdn.yourdomain.net (this URL should be replaced with the original INXY CDN URL you have).

Now “Save Configuration”.

From now on, your website should be using CDN service: you can confirm it by reloading pages and checking page source. The Origin URL will be rewritten to the CDN temporary URL you have set.

Pay attention that sometimes you need to tweak some default Drupal functions to leverage the CDN:

Proceed to admin ⇨ settings ⇨ performance

Enable regular caching.

Disable functions “Page compression”, “Block cache”, “Optimize CSS files” and “Optimize JavaScript files” and then choose “Clear cached data.”

Go to admin ⇨ settings ⇨ advagg ⇨ config

Also don’t forget to disable “Enable Advanced Aggregation”, “Use AdvAgg in closure” and “Gzip CSS/JS files” then click “Flush AdvAgg Cache.”

Go to admin ⇨ settings ⇨ advagg ⇨ bundler

Disable “Bundler is Active.”

Proceed to to admin ⇨ settings ⇨ advagg ⇨ css-compress

Disable “Compress CSS Files” and “Compress Inline CSS.”

Navigate to admin ⇨ settings ⇨ advagg ⇨ js-compress

Disable “Compress JS Files”, “Compress Inline JS” and “Enable Packer.”