« Back to Configuring

Content Delivery Network

Introduction #

A Content Delivery Network (CDN) is a network that puts resources in different places and that allocates those resources according to the closest location. This allows users to access the resources with a lower bandwidth bottleneck. For more information, see Wikipedia - Content Delivery Network.

Liferay CDN (Content Delivery Network) Configuration #

To configure Liferay to use a content delivery network, edit this setting in portal.properties:

##
## Content Delivery Network
##

    #
    # Set the hostname that will be used to serve static content via a CDN. This
    # property can be overridden dynamically at runtime by setting the HTTP
    # parameter "cdn_host".
    #
    cdn.host=

Distinction between http and https (soon) available #

As committed/commented on Aug 19, 2009 this will be superceded by

   cdn.host.http=
   cdn.host.https=

which will fall back to the old configuration value (cdn.host) if configured. The values reference the protocol the page linking to the cdn has been requested with.

Unfortunately the Jira entry has no "fix" version: please place a note here (or edit this article again) when the feature is available in a released version.

0 Attachments
35417 Views
Average (2 Votes)
The average rating is 1.0 stars out of 5.
Comments
Threaded Replies Author Date
Would be nice to know how to get your static... Olav Snoek August 6, 2010 2:25 AM

Would be nice to know how to get your static files out of liferay in order to be able to synchronize the CDN and the parent liferay site. Any help would be appreciated.
Posted on 8/6/10 2:25 AM.