Configuring Content Delivery Network (CDN)

Article Id
kb42
Published
21 Aug 2012 at 12:19
Last Updated
27 Nov 2013 at 16:01

As of version 0.5.1, Camino CMS includes limited Content Delivery Network or CDN support. At present, this support is limited to changing the address of some website content to point at a different (i.e. your CDN) server address.

For many sites, the use of a CDN would be prohibitively expensive. It is possible to set up your own CDN from which you can server static content, and a guide on how to do this may be found here.

Key Information

The use of a CDN does not mean that some files and folders should not be uploaded to your standard Camino CMS website. To ensure site and service integrity, you should upload all files that you would normally require for non-CDN operation to your website.

The Administrator website and any required files (images, CSS etc) is explicitly excluded from CDN support.

Enabling CDN

To enable CDN support within Camino CMS, it is necessary to add a configuration setting to your Camino configuration:

  1. Open the configuration file /Config/AppSettings.Config within your Camino website (notepad will be fine)
  2. Add the following key: <add key="contentDeliveryNetworkUrl" value="<cdn server address>"/> between the <appSettings></appSettings> tags
  3. Save and upload the AppSettings.Config file to the config folder on your live website. To ensure that the setting takes immediate effect, also upload the web.config file found in the root of your camino website as well.

Configuring CDN

Irrespective of your CDN provider, your CDN file and folder structure must exactly mimick two specific folders within your Camino CMS website for it to work correctly. If you are using a 3rd party CDN provider, then you should upload the these folders from your Camino CMS website:

  • App_Themes
    • (You can remove the Administrator folder as this will not impact on your live site)
  • FileLibrary

Affected Files

The CDN filter will currently only process files with the following extensions:

  • BMP (image)
  • GIF (image)
  • JPG (image)
  • JPEG (image)
  • PNG (image)
  • TIF (image)
  • TIFF (image)
  • CSS (CSS Stylesheet)
  • JS (JavaScript file)
     
Copyright © 2011 - 2024 Calzada Media Limited. All Rights Reserved