Our recent posts have centered on utilizing the power of a CDN to speed up your CMS. This one is no different. If you use a Drupal based site, there are tremendous speed gains to be had by leveraging the power of a Content Delivery Network, such as ours. A CDN helps keep your content geographically close to your visitors. It cuts down on load times and keeps your content flowing quickly while keeping your visitors happy.
If you use Drupal and want to use a CDN, this is the how to post you’ve been looking for…
1. Login to the admin interface of your Drupal installation. Usually located at http://domain.com/drupal/admin/
2. Select the Modules option from the menu at the top of your browser session.
3. Click “Install New Module.”
4. Enter the following URL http://ftp.drupal.org/files/projects/cdn-7.x-2.6.tar.gz into the “Install from URL” field. Then click “Install.” This will install the Drupal CDN module. If you want more info about this module, please check out this page. https://www.drupal.org/project/cdn
5. Step 4 will install the CDN module. If the module installs successfully, you will be presented with the following screen:
6. After the module is installed, you muse enable it. To do so, go back into the “Modules” menu and scroll to the Performance and Scalability section of the page. When there, click the box next to “CDN” and then click “Save configuration” to enable the CDN module.
7. The next step involves configuring the CDN module which you installed. Get back to the CDN module inside of the Modules menu. Then click “Configure.”
8. Once in the configuration menu for the CDN module, you must set its status to Enabled. You may leave the “Display Statistics” box unchecked if you wish. After setting the status to Enabled, click “Save Configuration.”
9. Next, click into the Details tab and make sure that “Origin Pull” is selected. Next, in the CDN Mapping field, enter the URL to your CDN (i.e. http://cdn.domain.com) to specify what individual files or file types you wish to load into the CDN. Using the pipe < | > character after your domain name followed by a list of file extensions separated by spaces will ensure that all files with the specified extension will be loaded into, and served from the CDN. Then simply click “Save configuration” and you’re good to go!
That’s it! Installing a CDN into Drupal is easy and straightforward.
If you need more information on getting a CDN for your site, or if you have any questions, please contact our technical team. We’ll be happy to help you find a solution that fits your needs. Get in touch with us today!