Support

Find answers, guides, and tutorials to supercharge your content delivery.

Perch CDN Integration

Updated on October 4, 2018

This tutorial shows how to complete a Perch CDN integration with KeyCDN.

  1. Create a Pull Zone before you start the Perch CDN integration.

  2. Log in to your Perch control panel.

  3. Open perch/config/config.php.

    1. Find the following function:

      define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');
      
    2. Update the function to the following replacing http://example-hexid.kxcdn.com with your Zone URL or Zone Alias:

      define('PERCH_RESPATH', 'http://example-hexid.kxcdn.com' . PERCH_LOGINPATH . '/resources');
      
  4. If you have custom buckets prefix the web_path directive for any bucket that you want to serve from KeyCDN. First open perch/config/buckets.php.

    1. Find the following variable:

      'web_path' => '/my/bucket/path',
      
    2. Update the variable to the following replacing http://example-hexid.kxcdn.com with your Zone URL or Zone Alias:

      'web_path' => 'http://example-hexid.kxcdn.com/my/bucket/path/',
      

That's it! You're done with the Perch CDN integration.

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more