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


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