StackPath Support

XenForo: StackPath CDN Setup Guide

This tutorial assumes you have already created a Site.

  1. Connect to your ftp account.

  2. Navigate to folder library

  3. Edit file config.php and add below two lines:

    $config ['externalDataUrl'] = 'http://site.company.stackpathdns.com/data';
    $config ['javaScriptUrl'] = 'http://site.company.stackpathdns.com/js';
  4. Login to your XenForo admin area.

  5. Navigate to Style -> General -> Settings.

  6. Under field Path to images replace existing content (/styles/default) with following:

    http://site.company.stackpathdns.com/styles/default
  7. Click on Update Style Properties to apply your settings.

  8. All Done!

To ensure you implemented the StackPath Secure Content Delivery(SCD) correctly, you can view the source code of any page to confirm that the SCD domain is being used for static assets instead of your origin domain. You can also use tools like pingdom, gtmetrix, webpagetest that can give you more detailed reports on your SCD implementation status.

Return to top