This article will show you how to configure your WordPress 3.2+ website to use the Serversaurus Cloud CDN, using the W3 Total Cache plugin.
Creating the CDN
Where appropriate, substitute example.org
for the actual URL of your WordPress website.
1. Login to the Serversaurus Cloud Dashboard and proceed to the CDN Resources page:
Once there, press the CDN Resource Wizard button.
2. On the proceeding screen, you will want to select HTTP as the CDN Type, and press Next:
3. You will now need to fill in the CDN Hostname and Origins.
CDN Hostname – just enter a hostname that you would like your CDN to be accessible at. It doesn’t need to be real – an alternate will be provided.
Origins – just type in the domain name that you usually access your website at.
Content Origin – just select PULL in this case.
Note on SSL: You may use HTTPS/SSL using Let's Encrypt SSL for a custom hostname or a shared (yourdomain.r.worldssl.net
) hostname.
Once this is done, press Next.
4. In this final step, you will need to select which locations you would like your CDN to be enabled in.
There is nothing wrong with selecting all locations – a user will always be directed to the closest of your selected choices:
Once you’ve made your selections, press Create CDN Resource.
5. It can take a few minutes for the CDN to become active. While you wait, please note the Raw CDN hostname on the proceeding page:
It will always be the format of xxxxx.r.dynomeshcdn.net
, unless you are using SSL, in which case it will end in worldssl.net
for shared SSL.
Configure the CDN in WordPress
You'll need to configure the CDN in WordPress using the CDN plugin of your choice. Many caching plugins also have CDN functionality. We'll be using the W3 Total Cache plugin for this example.
1. Install the W3 Total Cache plugin (you can find installation instructions on its website, or more simply just use the built-in plugin installer in WordPress).
Once it is installed, activate it.
2. Navigate to the Performance -> General Settings menu item.
Choose the CDN tab from the menu links across the top of the page.
Click Enable, then choose Generic Mirror from the CDN Type list. Click Save All Settings.
3. Navigate to the Performance->CDN page. Scroll down to the Configuration section, and fill out the section as displayed below, using the CDN Hostname noted previously:
Before you save, press ‘Test Mirror’ and ensure that you get a successful result.
Click Save all settings, and your WordPress site should now be using the Serversaurus CDN!
Comments
0 comments
Please sign in to leave a comment.