Contact
Site: US UK AU |

How to configure CDN access for Magento

How to configure CDN access for Magento

Overview
This article explains how Nexcess clients can use the Client Portal to configure their CDN service for use with their Magento store.

Table of contents

Prerequisites

  • An active CDN service with Nexcess. To order a Nexcess service plan, visit our website.

  • A functioning Magento store on your Nexcess server.

  • Your Client Portal username and password. These were originally provided in the Nexcess Welcome Email, though you may have since changed them. If you cannot locate this information, click the Reset Password link on the Client Portal login menu or contact the Nexcess Support Team.

Exception about media assets

Media assets like JPG, MP3, MP4, and so on, are already compressed and do not benefit from additional compression. Therefore, it is recommended you do not enable compression on these asset types.

Procedure

This procedure addresses Magento 1.x. For Magento 2, see How to configure CDN access for Magento 2.

1: Access the CDN control panel

  1. If you have not already done so, purchase a Nexcess CDN plan or use a Magento hosting plan that comes with CDN access. If you plan already includes a CDN but you do not see one listed, contact the Nexcess Support Team for assistance.

  2. Log in to the Client Portal. From the dashboard, click Services > Other.

  3. Locate the relevant CDN service. From the menu toggle, followed by CDN Control Panel.

  1. If prompted, choose your preferred language.

2: Configure large HTTP delivery 

Attention: You must enable CDN compression as instructed below for both the HTTP large and HTTP small delivery methods to fully utilize the CDN’s compression utility.

  1. Select HTTP Large > Customer Origin.

  2. In the Directory Name field, enter your preferred name, such as “magento”.

  3. In the Hostname or IP Address field, type the web address (URL) of your store; for example, store.nexcess.net.

    Figure 5. HTTP Large Object Customer Origins example data.

  1. Near the Hostname or IP Address field, click Add.
    Screenshot - 6_10_2015 , 10_57_18 AM.png

  1. On the lower right in the HTTP Large Object Customer Origins control panel, click Add.

  1. Setup for your large HTTP delivery is now complete. Proceed to the “Configure small HTTP delivery” section.

3: Configure small HTTP delivery

  1. Select HTTP Small > Customer Origin.
    Screenshot - 6_10_2015 , 11_23_22 AM.png

  1. In the Directory Name field, enter your preferred name, such as “magento”.

  2. In the Hostname or IP Address field, type the URL of your store; for example, store.nexcess.net.

  1. Near the Hostname or IP Address field, click Add.
    Screenshot - 6_10_2015 , 10_57_18 AM.png

  1. On the lower right in the HTTP Small Object Customer Origins control panel, click Add.
    Screenshot - 6_10_2015 , 11_31_49 AM.png

  1. Setup for your small HTTP delivery is now complete. After waiting about one hour to give the CDN service time to cache your data, proceed to the “Verify settings” section.

4: Verify settings

Attention: Allow the CDN service at least one hour to cache your data before you attempt to verify the new settings as outlined below. 

To verify both large and small customer origins, use the URLs provided in the Customer Origin panel and append destinations specific to Magento:

  1. To test the small HTTP customer origin:

    1. Locate your store’s URL in the HTTP Small Object Customer Origins control panel.
      Screenshot - 6_10_2015 , 11_45_25 AM.png
    2. Append /js/mage/cookies.js to your store’s URL. From the example URL shown above, the appended URL would read: http://smhttp.42588.nexcesscdn.net/8016fc0/magento/js/mage/cookies.js
    3. Enter the appended URL into your web browser. If the page loads, your assets have successfully propagated to the CDN and you may proceed to Step 2. If you have already completed Step 2, proceed to the next section.
  1. To test the large HTTP customer origin, repeat Step 1 from the HTTP Large Object Customer Origins Panel.


5: Update your Magento installation

  1. Update your Magento install to use the new large and small origin URLs by selecting System > Configuration > Web > Unsecure.
  2. Click Current Configuration Scope and select your website.
  3. In the Base Skin URL field, enter the small origin URL you created in the “Configure small HTTP delivery” section, Step 6 (see below image).
  4. In the Base Media URL field, enter large origin URL you created in the “Configure large HTTP delivery” section, Step 6 (see below image).
  5. Edit the Base JavaScript URL by entering the small origin URL into that field.
    Screenshot - 6_26_2015 , 9_32_08 AM.png

  6. Click Save Config.

6: Purge the CDN cache

Follow the procedure given in How to purge the CDN cache.

7: Activate CDN compression

Follow the procedure provided in How to activate CDN compression.


For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to perform Magento database maintenance
Added on Tue, Jul 30, 2013
What is Turpentine?
Added on Thu, Aug 28, 2014
How to find and remove hanging Magento cron jobs with SSH
Added on Thu, Oct 30, 2014
How to patch your Magento store
Added on Mon, Jan 11, 2016
How to set Magento file permissions
Added on Mon, Nov 3, 2014
How to improve Magento maintenance mode
Added on Mon, Feb 24, 2014
How to add admin users in Magento 1.x
Added on Wed, Dec 7, 2016
How to set up outgoing SMTP email for Magento
Added on Thu, Jul 5, 2018
How to configure multiple Magento storefronts
Added on Mon, Jul 29, 2013
How to change your Magento 1.x password
Added on Wed, Nov 30, 2016