To serve all of the above content from a single CDN path, set the 'cdn_base_url' variable. To serve one or more of the above from a different path, set one or more of the following variables: 'file_base_url', 'css_base_url', 'js_base_url', and 'theme_base_url'.
For example, if you would like to serve all static content from the domain 'http://cdn.sample.com', edit settings.php and set 'cdn_base_url' to 'http://cdn.sample.com. If you would like to serve CSS files and JS files from cdn2.sample.com, also in settings.php set 'css_base_url' and 'js_base_url' both to 'http://cdn2.sample.com'.
As a specific example:
$conf = array( 'cdn_base_url' => 'http://cdn.sample.com', 'css_base_url' => 'http://cdn2.sample.com', 'js_base_url' => 'http://cdn2.sample.com', );
This patch has not been merged into any release of Drupal.
Modified to use Drupal variables to define path to CDN, and ported to Drupal 6.