Legacy Knowledge Base
Published Sep. 10, 2025

What configuration needs to be done to bypass the proxy in Liferay?

Written By

Prarthana Jadhav

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • What are the proxy configurations to be done at Liferay to bypass the proxy available in the network?

Environment

  • Liferay Portal 6.2
  • Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4

Resolution

  • The configurations done at Liferay side to configure proxy are listed below,
    1. Adding these properties in system-ext.properties (its path is ROOT/WEB-INF/classes/system-ext.properties).
          # See portal.properties for more HTTP settings.
        #
          #
          # Set the location of the HTTP proxy that the portal will use to fetch
          # external content.
          #
          # Set http.nonProxyHosts for hosts that will not be proxied. This is useful
          # for proxied environments where you need direct access to internal servers.
          # This should follow the same semantics as the java.net package.
          #
        http.proxyHost=192.168.0.200
        http.proxyPort=4480
        http.nonProxyHosts=192.168.0.250
      These are the properties to be set to bypass the proxy which is available in the network.
    2.  In addition to this, if there is HTTP proxy authentication, then set the below properties in portal-ext.properties with respective credentials.
          # Set user name and password used for HTTP proxy authentication.
          #
          # Env: LIFERAY_COM_PERIOD_LIFERAY_PERIOD_PORTAL_PERIOD_UTIL_PERIOD__UPPERCASEH_TTP_UPPERCASEI_MPL_PERIOD_PROXY_PERIOD_PASSWORD
          # Env: LIFERAY_COM_PERIOD_LIFERAY_PERIOD_PORTAL_PERIOD_UTIL_PERIOD__UPPERCASEH_TTP_UPPERCASEI_MPL_PERIOD_PROXY_PERIOD_USERNAME
          #
        com.liferay.portal.util.HttpImpl.proxy.username=
        com.liferay.portal.util.HttpImpl.proxy.password=
      Note: Since DXP 7.4 Update 23 these properties have been renamed to:
          com.liferay.portal.kernel.util.Http.proxy.username=
          com.liferay.portal.kernel.util.Http.proxy.password=
    3. Please note: Perform this activity in application server downtime, because this step requires the restart of the server​​.

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base