All Collections
Getting Started
Making Website Faster
How to Setup CloudwaysCDN With Your Website
How to Setup CloudwaysCDN With Your Website

Learn how to setup, verify, integrate and remove CloudwaysCDN from your website.

Cloudways Product avatar
Written by Cloudways Product
Updated over a week ago

Table of Contents

Important Announcement for CloudwaysCDN Users

CloudwaysCDN is deprecated as of March 22nd, 2022, because a new and better-performing alternate is available called Cloudflare Enterprise. As a result, new CloudwaysCDN subscriptions will no longer be available; however, existing subscriptions will continue to work for the time being. The end-of-life for CloudwaysCDN is expected to fall towards the end of Q2 2022.

You can switch to the Cloudflare Enterprise add-on today to avoid any disruption. First of all, remove the CloudwaysCDN subscription and integrate the Cloudflare Enterprise add-on.

CloudwaysCDN is a one-stop solution to accelerate your website performance and offer top-of-the-chart global response times.

How to Setup CloudwaysCDN

To configure the CloudwaysCDN, you first need to enable it from the Cloudways Platform and then integrate it with your website using the following steps. In this example, we are using a WordPress application, but the process is the same for enabling the CloudwaysCDN for other applications.

Prerequisites

Here are a few prerequisites for configuring CloudwaysCDN:

  1. We recommend installing an SSL certificate and forcing HTTPS redirection before CloudwaysCDN integration to secure your website.

Important

  • If you are already using third-party CDN, then integrating CloudwaysCDN on top of it will break your website’s functionality. If you want to switch to CloudwaysCDN, you are required to remove other CDN services.

  • CloudwaysCDN integration is attached to your website domain. Any change in the website domain will affect CloudwaysCDN functionality.

  • CloudwaysCDN is not currently available for WordPress Multisite applications.

Step #1 — Navigate to CloudwaysCDN

Log in to your Cloudways Platform using your credentials.

  1. From the top menu bar, open Servers.

  2. Then, choose the server where your desired application is deployed.

    Classic Interface

    New Interface

  3. Next, click www.

  4. Choose your application’s name.

    Classic Interface

    New Interface

  5. Under Application Management, select CloudwaysCDN.

    Classic Interface

    New Interface

Step #2 — Activate CloudwaysCDN

  1. Enter your complete Website URL along with HTTPS protocol and any prefix such as www. In our case, it is simply https://cloudways.icu.

  2. Finally, click Create.

    Classic Interface

    That’s it! You have successfully set up CloudwaysCDN with your application. Now, the final step is to integrate the CloudwaysCDN with your website. Before moving forward, let’s take a quick look at the following information:

  3. Website URL — It is your website URL on which CloudwaysCDN is configured.

  4. CDN URL — It is the corresponding base CDN URL, e.g., 485030-1527904-raikfcquaxqncofqfm.stackpathdns.com. If you visit this address from your browser, you should see your website’s home page.

  5. Purge Content — This option allows you to purge your CloudwaysCDN cache worldwide instantly. It prevents the older version of your website assets from being delivered to the visitors just in case you have updated your website content.

  6. Bandwidth — Here, you will find the monthly bandwidth consumption of your application.

  7. Subscription — This option will remove the CloudwaysCDN subscription. If you plan to unsubscribe to the CloudwayCDN, delete the CDN URLs from your application before unsubscribing.

    Classic Interface

    New Interface

Step #3 — Integrate CloudwaysCDN

Now, you can integrate the CloudwaysCDN with your WordPress and Magento application using the 1-click integration feature, as shown in the following steps. Please ensure you have a Breeze cache plugin installed in your WordPress application, as it fully supports CloudwaysCDN and offers superior performance.

Important

If you want to use any other caching plugin for your WordPress application, please skip the next step.

Now, click Apply under Application Integration.

Classic Interface

New Interface

That’s it! You have successfully integrated the CloudwaysCDN with your WordPress application. It’s time to verify if the CloudwaysCDN is properly configured.

Verify CDN Integration

To test CDN integration, you can use any online third-party tool like the CDN Finder.

  1. Input your website URL in the given field.

  2. Select website.

  3. Click Run CDN Finder.

    Here, you will see StackPath if the CDN was configured correctly.

    Alternatively, you can verify CDN by visiting the developers’ tool of your browser to view the web page’s source code. Once there, search for the "stackpathdns", and you should see your CDN URL.

How to Remove CloudwaysCDN Subscription

You can remove the CloudwaysCDN subscription in a few steps. Before unsubscribing the CloudwaysCDN, you need to follow the steps below for your respective applications.

Step #1 — Remove CDN URLs from the Applications

WordPress

  1. Visit your WordPress admin panel.

  2. Go to Plugins.

  3. Select Caching Plugin(s), if any.

  4. From the Plugin settings, go to CDN and remove the CDN URLs.

For a video guide on this process, Click here.

Magento

  1. Login into your Magento admin.

  2. Go to Store > Web > Base URLs (Secure).

  3. Replace Stackpath URLs for static View files & Media Files with your primary domain:

  4. Click on Save Changes.

  5. From SSH on webroot (public_html), run the following commands:

    • php bin/magento s:s:d -f

    • php bin/magento cache:flush

    • php bin/magento cache:clean

Laravel & PHP

For PHP & Laravel Applications, you need to make the required changes or contact our support team for assistance because of custom configurations.

Step #2 — Unsubscribe CloudwaysCDN

  1. Navigate to the CloudwaysCDN section of your application.

  2. Next, click Remove Subscription.

    Classic Interface

    New Interface

  3. Finally, click Ok.

    Classic Interface

    New Interface

    Finally, click Unsubscribe.

That's it! We hope this article was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.

Did this answer your question?