This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. 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.