• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Static CNAME Path for CDN

BigBoiJefe

Chevereto Member
@Rodolfo

I'd like to offset the static elements of my site to a CDN, the issue is that If I setup a CNAME, called static.gagr.com, pointing to gagr.com, there's no way to change the path url in the code.

The static content I need to change:

Code:
http://gagr.com/app/lib/analytics.js
http://gagr.com/app/lib/chevereto.min.js
http://gagr.com/app/themes/Peafowl/style.min.css
http://gagr.com/content/images/system/logo_20150516074225.png
http://gagr.com/lib/Peafowl/js/scripts.min.js
http://gagr.com/lib/Peafowl/peafowl.min.css
http://gagr.com/lib/Peafowl/peafowl.min.js

Needs to be changed to:

Code:
http://static.gagr.com/app/lib/analytics.js
http://static.gagr.com/app/lib/chevereto.min.js
http://static.gagr.com/app/themes/Peafowl/style.min.css
http://static.gagr.com/content/images/system/logo_20150516074225.png
http://static.gagr.com/lib/Peafowl/js/scripts.min.js
http://static.gagr.com/lib/Peafowl/peafowl.min.css
http://static.gagr.com/lib/Peafowl/peafowl.min.js
 
For that you need to use the "CDN" setting. When you do that all the local resources are pointed to that URL. In this case you need to add a rewrite in static.domain.com to the right path/folder that you need. System will use CDN_URL instead of local url and append the path.

Your CDN url could be static.chevereto.com, static.chevereto.com/src, whatever, is the resolution in static.chevereto.com (in this case) which matters.
 
Last edited:
Back
Top