Implementing MaxCDN with XenForo Forum
After you have created your Pull Zone test your settings by getting the URL of an image and type that into your browser:
http://domain.com/data/attachments/xx/yy.jpg (example)
And modify it manually to point to your CDN:
http://cdn.domain.com/data/attachments/xx/yy.jpg (example)
You may also use the temporary URL if you have not created a CNAME. Also note that if you create a CNAME, DNS propagation could take up to 48 hours depending on how your domain’s DNS is setup with your registrar or hosting provider
If the image work at BOTH urls, you can move on to the next step. Otherwise, recheck your settings or give it some more time for DNS to propagate. A good idea is to test with BOTH Custom Domain and Temporary URL (if you have created a custom domain)
Next, you need to edit the config.php file that is located in the library directory. Simple edit the config file and add the following 2 lines:
$config['externalDataUrl'] = ‘http://cdn.domain.com/data’;
$config['javaScriptUrl'] = ‘http://cdn.domain.com/js’;
You will need to modify the above 2 lines to reference your OWN custom CDN URL, but you can see how I set it up for myself.
Finally, you will need to modify a value in the style vars:
Style Properties -> General -> Settings -> Path to Images:
http://cdn.domain.com/styles/YourThemeName
Support