Legacy Knowledge Base
Published Jul. 2, 2025

How to simulate a remote staging environment with one portal

Written By

Rodrigo Mier

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

  • To simulate a staging environment with just one portal instance.

Environment

  • Portal 6.2
  • DXP 7.0
  • DXP 7.1
  • DXP 7.2
  • DXP 7.3

Resolution

  • Just need to configure in the remote staging configuration page, the site id of that you want to be as remote site. It could be even from the same portal.

To configure this kind of environment, please follow this steps:

  1. Add the following properties to your portal-ext.properties:
    • tunneling.servlet.shared.secret=1234567890123456 
      tunnel.servlet.hosts.allowed=127.0.0.1
      axis.servlet.hosts.allowed=127.0.0.1
      auth.verifier.TunnelingServletAuthVerifier.hosts.allowed=127.0.0.1
      auth.verifier.pipeline=com.liferay.portal.security.auth.TunnelingServletAuthVerifier,com.liferay.portal.security.auth.BasicAuthHeaderAutoLogin,com.liferay.portal.security.auth.DigestAuthenticationAuthVerifier,com.liferay.portal.security.auth.ParameterAutoLogin,com.liferay.portal.security.auth.PortalSessionAuthVerifier
  2. Start the portal and create two sites. For example, "site stag" and "site remot"
  3. Copy the site id from the desired site, "site stag" in our example.
    • DXP environment: You can find the site Id at the control panel / Sites / Sites and edit the desired site.  
    • Liferay Portal 6.2: You can find the site Id at the desired site / Site Settings / Site ID
  4. Enable and configure remote Live in the "site stag"
    • DXP environment: "site stag" / Publishing /  Staging / Remote Live
    • Liferay Portal 6.2: Enable the staging at the Site Settings / Staging / Remote Live
  5. Configure the remote Live parameters:
    • Remote Host/IP: Your local IP machine (127.0.0.1)
    • Remote port: The same port where your portal is currently running (8080)
    • Remote Site ID: The site_id that selected at the step 2
  6. You can enable page versioning or whatever function that you want.
  7. Now you are able to execute the first publication from the "site stag" to the "site remot" with the same behaviour than a a remote staging environment.

Additional Information

  • This kind of configuration is recommended only for testing purposes and could have differences with a real staging remote environment.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base