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.
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:
On the local server (
STAGING_SERVER
) inportal-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=
On the remote server (
PRODUCTION_SERVER
) inportal-ext.properties
, set the following properties:tunnel.servlet...