Loading...
 

How to set up Content Delivery Network (CDN) for Tiki Wiki CMS Groupware on ClearOS

The information is no longer updated. It may still be valid, or not. Anything relevant should be moved to the appropriate site. For anything related to ClearOS, please search among the following: ClearOS site, code base, Developer docs, Wiki or forum.

Please contact us if you would like to help out.


A content delivery network or content distribution network (CDN) is a globally distributed network of proxy servers deployed in multiple data centers. The goal of a CDN is to serve content to end-users with high availability and high performance.


A CDN is usually an external service, with data replication. But you can also have a CDN on the same server. This will improve performance a little because assets (images, CSS, and JS) will be served statically.

The trick is to have cdn.example.org in addition to example.org

  1. If you are using https, you need to add this to your certificate, which is easy with Let's Encrypt
  2. Create a new sub-domain with your DNS provider (usually your domain registrar)
  3. to assign two domains to your site (via the web server admin panel in ClearOS)
    • Make sure it's working by visiting this new sub-domain. You will get an error message "This is a Content Delivery Network (CDN) to speed up delivery of images, CSS, and javascript files. However, PHP code is not executed." (This is what you want)
  4. Set these sub-domain name (http and https) in Content Delivery Networks at tiki-admin.php?page=performance
  5. https://doc.tiki.org/Content+delivery+network#CDN_for_icons_i.e._webfonts_require_CORS_headers
  6. Visit the main domain.

See also