How Nexcess clients can use their Client Portal to configure their Nexcess CDN service for use with their Magento 2 store.
What you need
Exception for media assets
Certain types of content, such as images, video, and audio media assets like JPG, MP3, MP4, and so on, are already compressed. Additional compression to these types of assets will not significantly diminish file size.
1: Access the portal
- The Nexcess CDN is provided at no cost for your Magento store.
- Log in to the Client Portal. From the dashboard, click Plans > Plan Dashboard.
- In order to be able to use the Nexcess CDN you will need to enable it from the Performance tab.
- Click on the toggle in the Content Delivery Network section to Enable CDN. A popup will display you will need to click on the ENABLE button.
- Once the CDN has been enabled the CDN origin URL will now show in the Content Delivery Network section of the performance tab.
- Locate the Nexcess CDN information from the Performance tab in the portal.
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.
- Append /js/mage/cookies.js to your store’s URL. From the example URL shown in the above image, the appended URL would read: https://eadn-wc02-876771.nxedge.io/cdn/js/mage/cookies.js
- 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.
- Update your Magento 2 installation
- Update your Magento install to use the CDN origin URL by selecting Stores > Configuration > Web.
- From the General tab, select Web.
- From the Store View drop-down list, select your desired store.
- In the Base URL (Secure) section, in the Base URL for Static View Files and Base URL for User Media Files fields, enter the CDN origin URL. The static view file and user media files will depend on how your Magento 2 store is installed with or without pub in the path. Examples being https://eadn-wc02-876771.nxedge.io/cdn/pub/static/ for static view files and then to use https://eadn-wc02-876771.nxedge.io/cdn/pub/media/ for user media files.
- In the same section, in the Base URL for User Media Files field, the origin URL.
- Flush the Magento 2 cache:
- From the main menu, select System > Cache Management.
- On the upper right, click Flush Magento Cache.
For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.