This is a simple module and drush script for that allows you to enable CDN support per site in Aegir. It takes care of setting up a new virtual host that is configured to serve your site's static files over one or more additional domains, eg. css.example.com, js.example.com, cdn.example.com. Use in conjunction with the Drupal CDN module for full effect.
It is specifically aimed towards the Ægir project and therefore depends on the provision backend and expects the Aegir environment to be functional. If you don't know what Aegir is, you'll probably want to start there and come back when you really know that you want to use this code.
There are two parts to the code: - A Drupal module for hostmaster - contained in the /hosting directory. Install this like any other Drupal module into you hostmaster site. - A provision Drush extension - contained in the /provision directory. Copy this into /var/aegir/.drush on your Aegir master server. Now just enable the module in the Aegir frontend, and you're ready to go.
This was built on a Barracuda system, so requires Provision 6.x-2.x
When creating or editing a site, you can optionally add one or more cdn domains Leaving this blank will do nothing, but if they are filled in then those domains will be created to serve only your site's static content.
Currently only works with Nginx (No Apache support).