legacy-knowledge-base
公開されました Sep. 10, 2025

https を使用して DXP にアクセスしますが、CDN の URL は http を使用します

written-by

Javier Moral

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • SSL オフロードを担当する DXP ノードの前にロード バランサーがあり、CDN の使用が構成されている場合、https プロトコルを使用して DXP にアクセスすると、コンテンツは https ではなく http を使用して CDN からダウンロードされます。
  • CDN の使用は、次のプロパティを使用して構成されています (値は架空のものです)。
#
# Set the hostname that will be used to serve static content via a CDN for
# requests made over the HTTP protocol. This property can be disabled
# dynamically at runtime by setting the URL parameter "cdn_enabled" to "0".
# The value must always include the full protocol.
#
cdn.host.http=http://localhostCDN

#
# Set the hostname that will be used to serve static content via a CDN for
# requests made over the HTTPS protocol. This property can be disabled
# dynamically at runtime by setting the URL parameter "cdn_enabled" to "0".
# The value must always include the full protocol.
#
cdn.host.https=https://localhostCDN

環境

  • Liferay DXP 7.0+

解決策

did-this-article-resolve-your-issue

legacy-knowledge-base