Quantcast
Viewing all articles
Browse latest Browse all 49203

CDN module produces incorrect absolute url's

Need some help putting together the CDN stuff that Christefano covered in the performance meetup from this past September at Oversee. I have basically done everything required nut am seeing some weird behavior.

I should actually start by saying that I have been researching CDN's and chose AWS Cloud Front. On November 1st they announced Custom Origins rather than having to use there default S3. This is now inline with the presentation (Christefano used SoftLayer) and works with the Basic mode of the CDN module. The File Conveyor by Wim Leers is not necessary.

You have to jump through a few hoops right now to enable it since their web GUI doesn't allow you to configure it. More information is available in the issues list for CDN at:

http://drupal.org/node/971234

Anyhow, I stepped through the instructions. I have a working Origin Pull CDN at AWS and I have confirmed it by putting in my CNAME generated domain: cdn.domain.com which show one of the images I pushed to the AWS node nearest me.

I also walked through the install instructions that include 2 patches for Drupal core and the Imagecache module. My problem is that Drupal is creating a wonky file path through the patched file_create_url() function that look like this:

http://domain.com/cdn.domain.com/cdn.domain.com/sites/domain.com/files/i...

I manually looked at all of the patches and everything looks good. Any ideas for why this might happen???


Viewing all articles
Browse latest Browse all 49203

Trending Articles