Perch CDN Integration
Updated on October 4, 2018
This tutorial shows how to complete a Perch CDN integration with KeyCDN.
Create a Pull Zone before you start the Perch CDN integration.
Log in to your Perch control panel.
Open
perch/config/config.php
.Find the following function:
define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');
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');
If you have custom buckets prefix the
web_path
directive for any bucket that you want to serve from KeyCDN. First openperch/config/buckets.php
.Find the following variable:
'web_path' => '/my/bucket/path',
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.