legacy-knowledge-base
Publicado Sep. 25, 2010

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

learn-legacy-article-disclaimer-text

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