Quick guide for setting-up a CDN on Rackspace.
CDN Set-up
Log into your Rackspace MyCloud account. Click into Storage > CDN then "Create Service". In the next pop-up set the Service Name, this is the internal identifier you'll use to manage the CDN.
Choose Traffic Type
Traffic Type will almost always be HTTPS and your content will be supplied using an SSL from the CDN. If you select HTTP you will not be able to use the CDN content on a website secured by SSL.
Choose Certificate Type
You can select a Certificate Type. A "Shared Rackspace Domain Certificate" will require minimal set-up as it will use an SSL certificate supplied by Rackspace, this will include a URL for the CDN provided by Rackspace. Selecting a "Shared SAN Certificate" will allow you to use your own domain name and upload an SSL to authenticate it.
Domain Name
If you selected a "Shared Rackspace Domain Certificate" you can create a unique secure.raxcdn.com
domain name which will be used to supply your CDN content. If selected your own certificate you can enter the
domain name of your custom CDN domain.
Origin
The Origin URL is the source of the CDN files, this will typically be the URL visitors use to access your website. This is where Rackspace will copy your cached content from.
Implementation
Now that you have the CDN set-up in Rackspace you will be able to use your new CDN URL to load static content on your website.
You can begin by swapping out the URLs for CSS and JavaScript. For example:
-
Old: https://example.com/logo.png
-
New: https://examplecom.xyz1234.secure.raxcdn.com/logo.png
-
Old: https://example.com/wp-content/themes/theme/style.css
-
New: https://examplecom.xyz1234.secure.raxcdn.com/wp-content/themes/theme/style.css
The only difference between the two URLs should be the domain name. The subdirectories should match exactly.
That's it.
Latest posts
—
Core Web Vitals: Optimisation techniques
Google's Core Web Vitals have become the de facto standard for measuring user experience on the web. For years, developers have focused on the foundational trio: Largest Contentful Paint (LCP),…
Continue reading "Core Web Vitals: Optimisation techniques "
—
Web Safe Fonts: A Quick Explainer for Developers
If you've ever built a website and wondered why your carefully chosen typography looks completely different on someone else's screen, you've encountered the world of web safe fonts. Let's break…
Continue reading "Web Safe Fonts: A Quick Explainer for Developers "
—
Choosing the right content management system
Choosing the right content management system (CMS) is one of the most consequential early decisions when building a website The content management system shapes everything from how editors publish to…
Continue reading "Choosing the right content management system"
—
WYSIWYG or plain-text CMS editing?
Finding the Right Balance for Your CMS UsersWhen configuring a content‑management system (CMS), the choice between a WYSIWYG (What‑You‑See‑Is‑What‑You‑Get) editor and a plain‑text interface has far‑reaching implications for both usability…