How to Set Up Vultr CDN for WordPress Websites with CDN Enabler
Introduction
CDN Enabler is a WordPress content delivery plugin that offloads all assets such as images, CSS, and Javascript files for serving through a Content Delivery Network (CDN). Vultr CDN is a high-performance content delivery network that speeds up the distribution of cached WordPress assets in multiple locations closer to your website visitors.
This article explains how to set up Vultr CDN for WordPress websites with the CDN Enabler plugin.
Prerequisites
Before you begin:
Create a Vultr CDN for your WordPress website by providing the domain name as the origin URL.
Log in to the WordPress administration dashboard.
https://example.com/wp-admin
Install CDN Enabler
Navigate to Plugins on the main navigation bar.
Click Add new plugins from the list of options to browse available WordPress plugins.
Enter
CDN Enabler
in the search field.Find the CDN Enabler plugin in your search results.
Click Install to add the plugin to your WordPress site.
Click Activate to enable the plugin.
Configure CDN Enabler
Navigate to Settings on the main navigation bar.
Click CDN Enabler from the list of options to access the plugin settings.
Enter your Vultr CDN URL in the CDN Hostname field.
Verify the WordPress file extensions on the CDN Inclusions list to cache your CDN endpoint.
Scroll and click Save Changes and Validate Configuration to apply the new CDN settings.
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 confirm that your Vultr CDN endpoint is integrated.
Test the Vultr CDN Integration
Access your WordPress website as a regular user in a new web browser such as Edge.
https://example.com
Right-click any images on your WordPress site and select Copy Image Link from the list of options.
Paste the copied link to your URL bar and verify that it matches your Vultr CDN endpoint. Press :Key_Enter: to open the image using your CDN URL to verify that all images are correctly served by the CDN.
To verify the WordPress site sources serving content to your regular site visitor. Right-click anywhere within your website and select Inspect from the list of options.
Navigate to the Sources tab and verify that your Vultr CDN URL is available on the list.
Expand your Vultr CDN URL to view all files served from the endpoint and compare with your domain files to verify that enabled extensions correctly offload to the CDN.
Troubleshooting
CDN Enabler requires an active Vultr CDN endpoint to correctly offload all enabled WordPress file types. During configuration, you may experience multiple errors, fix them as described in the following steps.
Invalid CDN Hostname: cURL error 28: Resolving timed out after 10000 milliseconds
Visit your Vultr CDN URL in a new web browser window and verify that it loads correctly.
https://cdn.example88.vultrcdn.com
Access your Vultr CDN Control Panel using the Vultr Customer Portal.
Verify that your Vultr CDN endpoint is correct and uses the correct protocol that matches the Origin URL. For example, verify that
https://example.com
is the correct URL if your WordPress uses SSL andhttp://example.com
when using plain HTTP.
Conclusion
You have set up Vultr CDN for WordPress websites with the CDN Enabler plugin. Depending on your site structure, you can offload all supported file extensions to the CDN to reduce your server load and optimize the general WordPress performance for all site visitors. For more information, visit the CDN Enabler documentation.