After quite a few failed attempts the get Limelight origin-pull CDN integration to work with a new Drupal Pressflow 6 site that I’ve been working on, I finally reached the magic combination of Drupal and Apache settings. While previous Drupal integrations with Akamai went smoothly, I had issues with Limelight and some assets still coming from origin and users getting bounced back to origin when logging in.
I can’t guarantee these settings will work with your site, but they work for us with PressFlow 6.17.85 and Apache 2.2. Note that you don’t need a Drupal CDN module to get origin pull integration to work.
Apache httpd.conf settings
ServerName www.mydomain.com
ServerAlias origin.www.mydomain.com
UseCanonicalName On
Pressflow settings.php
$base_url = ‘http://www.mydomain.com’;
$cookie_domain = ‘mydomain.com’;
Pressflow .htaccess
RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]