How to Set Up Vultr CDN Pull Zones for WordPress Websites with CDN Enabler

Updated on November 21, 2023
How to Set Up Vultr CDN Pull Zones for WordPress Websites with CDN Enabler header image

Introduction

CDN Enabler is a WordPress content delivery plugin that rewrites static asset requests such as images, CSS, and Javascript files for serving by a Content Delivery Network (CDN). Vultr CDN Pull Zones enable the automatic caching of your WordPress site to improve the delivery of static assets such as images, documents, and media files closer to your site's visitors.

This article explains how to set up Vultr CDN Pull Zones for WordPress websites using the CDN Enabler plugin.

Prerequisites

Before you begin:

  • Create a new Vultr CDN Pull Zone for your WordPress website by providing the domain name as the origin URL.

  • Login to the WordPress administration dashboard.

    https://example.com/wp-admin

Install CDN Enabler

CDN Enabler is available in the default WordPress plugins directory. Follow the steps below to download and install the CDN Enabler plugin to your WordPress site.

  1. Navigate to Plugins on the main navigation menu.

  2. Click Add new plugins from the list of options to browse the WordPress plugins directory.

  3. Enter CDN Enabler in the search field.

    Search the CDN Enabler Plugin

  4. Find the CDN Enabler plugin in your search results.

  5. Click Install to download the latest plugin package and install it on your WordPress site.

  6. Click Activate to enable the plugin.

    Activate the WordPress CDN Enabler Plugin

Configure CDN Enabler

CDN Enabler supports multiple file types and enables caching by rewriting all supported requests to your Vultr CDN Pull Zone's URL. Follow the steps below to configure CDN Enabler to use your Vultr CDN Pull Zone URL as the hostname and enable the plugin to deliver supported assets using your Vultr CDN's URL.

  1. Navigate to Settings on the main navigation bar.

  2. Click CDN Enabler from the list of options to access the plugin settings page.

  3. Enter your Vultr CDN Pull Zone URL in the CDN Hostname field. For example, cdn-example88.vultrcdn.com.

    Configure the WordPress CDN Enabler Plugin

  4. Verify the list of default file formats available in the File Extensions field to rewrite and cache with your Vultr CDN Pull Zone.

  5. Enter specific strings or file extensions within the CDN Exclusions field to exclude from your Vultr CDN URL.

  6. Click Save Changes and Validate Configuration to apply your CDN configuration changes..

  7. Verify that a Valid CDN Hostname: cdn-example88.vultrcdn.com returned a 200 status code. prompt displays at the top of your plugin page to verify that your Vultr CDN Pull Zone is integrated with the WordPress site.

    Verify the CDN Pull Zone Integration

Test your Vultr CDN Pull Zone Integration

A Vultr CDN Pull Zone URL contains the full cached version of your WordPress site. The CDN Enabler plugin rewrites your original WordPress content requests with the Vultr CDN Pull Zone's URL to enable faster delivery of all cached files. Follow the steps below to verify that CDN Enabler delivers all actively enabled assets using your Vultr CDN Pull Zone URL.

  1. Access your WordPress website as a regular visitor using a different web browser such as Chrome.

    https://example.com
  2. Right-click any image on your WordPress site and select Copy Image Link from the list of options.

  3. Paste the link to your URL bar and verify that it includes your Vultr CDN Pull Zone URL. Press :Key_enter: to load the image and verify that it's correctly served from your Vultr CDN Pull Zone.

    View the Vultr CDN Image Link

  4. Right-click anywhere on your WordPress site and select Inspect from the list of options to verify all assets served from your Vultr CDN Pull Zone.

  5. Navigate to the Sources tab and verify that your Vultr CDN Pull Zone URL is available on the list of asset origin URLs.

  6. Click your Vultr CDN Pull Zone to expand the group and view all files delivered by the CDN.

  7. Expand your original domain origin and verify that the CDN serves all file extensions such as .jpg images actively enabled in your CDN Enabler configuration.

    View WordPress Vultr CDN Sources

Troubleshooting

CDN Enabler requires an active Vultr CDN Pull Zone to correctly deliver all enabled WordPress assets using the CDN. While setting up the plugin, you may experience configuration errors. Follow the steps below to fix common Vultr CDN Pull Zone integration errors.

Invalid CDN Hostname: cURL error 28: Resolving timed out after 10000 milliseconds

  1. Visit your Vultr CDN Pull Zone's URL in a new web browser window and verify that it loads your full WordPress site correctly. For example, https://cdn.example88.vultrcdn.com.

    https://cdn.example88.vultrcdn.com
  2. Access your Vultr CDN Pull Zone's management page.

  3. Find the CDN Information section and verify that your Origin URL value uses the same URL scheme as your Vultr CDN Pull Zone.

    View CDN Information

    For example, if your Vultr CDN Pull Zone URL is https://cdn.example88.vultrcdn.com, your origin URL must also use the https:// connection scheme such as https://example.com. When using HTTP, both the CDN URL and Origin URL should use the same http:// scheme. For example, http://example.com.

Conclusion

You have installed CDN Enabler and configured your WordPress website to serve cached content from your Vultr CDN Pull Zone. You can offload all supported file types and use CDN Enabler to improve your general website's performance.