Proxy Behind CloudFlare CDN – Existing Image Domain

20 November 2015 by admin

Yavli content must be served as 1st party content on the Publisher’s website. This is achieved by implementing proxy directives somewhere in the Publisher’s image delivery chain, which sequesters Yavli web requests from normal Publisher requests. This proxy can be implemented as a service behind the CloudFlare CDN system.

This is a guide that explains how to set up the “Proxy Behind CloudFlare CDN” using an existing image domain. Note, you may be serving content other than just images like CSS and Javascript via this domain, which is not a problem – non-image content distribution will continue to work seamlessly after this change.

Prepare

Please submit details of your image origin to Yavli, i.e, where CloudFlare is currently downloading the images from. Yavli must configure the “Proxy Behind CDN” service on their end using the same origin for the images.

Proceed to the next step only once Yavli has confirmed this service is ready!

Activate

  1. Log in to your CloudFlare account.
  2. Select the main domain of your website in the upper left dropdown menu.
  3. Click on “DNS”.
  4. Find the image domain in the list of DNS entries, and delete it by clicking the “X” in the right hand side.
  5. In the top of the page where you add new DNS entries, make these entries:
    Select “CNAME” in the first drop down.
    Name: image sub domain name, eg: “images”.
    Domain name: proxy.yavli.com
    Click “Add Record”
  6. Important: Click the greyed out cloud icon under “Status” on the new sub domain entry.