Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Overview of this book

Table of Contents (19 chapters)
Liferay 6.x Portal Enterprise Intranets Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Enabling remote live staging


Liferay provides remote live staging for separate testing areas and production environments. In the local server, we can configure and test a new layout or a whole site after publish event changes are propagated into the production environment. To achieve this, both servers have to know about themselves.

How to do it…

Let's assume that the local server for the test environment is called STAGING_SERVER and the server machine for the production environment is PRODUCTION_SERVER.

To properly configure remote live staging, go through following steps:

  1. On the local server (STAGING_SERVER) in portal-ext.properties, set the following properties:

    tunnel.servlet.hosts.allowed=127.0.0.1,PRODUCTION_SERVER_IP
    axis.servlet.hosts.allowed=127.0.0.1, PRODUCTION_SERVER_IP
    tunneling.servlet.shared.secret=SHARED_SECRET
    auth.verifier.TunnelingServletAuthVerifier.hosts.allowed=
  2. On the remote server (PRODUCTION_SERVER) in portal-ext.properties, set the following properties:

    tunnel.servlet...