How to configure your Nexcess CDN with your ExpressionEngine service.
Many businesspeople wonder How Does a CDN Work to Speed Up Your Ecommerce Site? but they will discover that the reasons are remarkably straightforward. Review the content, resources, and links in this article to learn more about those reasons in full detail.
This procedure consists of the five steps below.
Configure the HTTP Small delivery platform as instructed in How to configure a CDN customer origin server.
Attention: Choosing the wrong platform for the type of content that you would like to serve can cause problems for your website. Therefore, it is very important that you select the correct platform for the type of content that you would like to serve.
After configuring your customer origin, it will take approximately one hour for the changes to be pushed to all CDN locations. Once propagation is complete, you can use the new CDN URL to access your content over the CDN.
You can choose to customize the CDN URL to be a simpler and more user-friendly name by configuring the CNAME file for your domain. Follow the steps in How to create a CNAME URL with Edgecast CDN.
If you do not want to configure the CNAME files, use the full URL that was provided after you configured your origin server in the HTTP Small procedure.
<FilesMatch "\.(gif|png|jpg|jpeg|css|js)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
FileETag none
</FilesMatch>
The code above sets the expiration for the headers correctly so that browsers cache the files once downloaded from the CDN.
RewriteCond %{REQUEST_FILENAME} \.(gif|png|jpg|jpeg|css|js)$ [NC]
RewriteCond %{HTTP:X-Host} !.*nexcesscdn\.net$ [NC]
RewriteRule ^(.*)$ http://wpc.a64f.edgecastcdn.net/80xxx/images/$1 [L,R=301]
The rewrite rule 301 redirects the request to the customer origin or CNAME URL. The URL shown is the URL provided by EdgeCast.
Follow the instructions provided in How to purge CDN cache.
Follow the instructions provided in How to activate CDN compression.
If any elements on your site appear to be missing, it could be due to one of the following:
For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.
Our award-winning customer care team is here for you.
Contact Support