Fix Virtual Host Hook

This app acts in the startup time of portal and help to fix the virtual host of Liferay. Given an existent database dump that points to a domain and a new environment needs to have a different domain the app will read a system property called liferay.virtual.host and set the value as the new company virtual host. For instance if the database dump points to www.myliferay.com and the property points to dev.myliferay.com the app will replace the former with the value of the latter. It was developed to avoid the redirect loop problem.

License

License

GroupId

GroupId

br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app
ArtifactId

ArtifactId

fix-virtual-host-hook
Last Version

Last Version

5.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Fix Virtual Host Hook
This app acts in the startup time of portal and help to fix the virtual host of Liferay. Given an existent database dump that points to a domain and a new environment needs to have a different domain the app will read a system property called liferay.virtual.host and set the value as the new company virtual host. For instance if the database dump points to www.myliferay.com and the property points to dev.myliferay.com the app will replace the former with the value of the latter. It was developed to avoid the redirect loop problem.
Project Organization

Project Organization

Thiago Moreira

Download fix-virtual-host-hook

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app/fix-virtual-host-hook/ -->
<dependency>
    <groupId>br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app</groupId>
    <artifactId>fix-virtual-host-hook</artifactId>
    <version>5.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app/fix-virtual-host-hook/
implementation 'br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app:fix-virtual-host-hook:5.1.0'
// https://jarcasting.com/artifacts/br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app/fix-virtual-host-hook/
implementation ("br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app:fix-virtual-host-hook:5.1.0")
'br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app:fix-virtual-host-hook:jar:5.1.0'
<dependency org="br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app" name="fix-virtual-host-hook" rev="5.1.0">
  <artifact name="fix-virtual-host-hook" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app', module='fix-virtual-host-hook', version='5.1.0')
)
libraryDependencies += "br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app" % "fix-virtual-host-hook" % "5.1.0"
[br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app/fix-virtual-host-hook "5.1.0"]

Dependencies

provided (4)

Group / Artifact Type Version
com.liferay : com.liferay.petra.lang jar
com.liferay : com.liferay.petra.string jar
com.liferay.portal : com.liferay.portal.kernel jar
org.osgi : org.osgi.service.component.annotations jar

test (1)

Group / Artifact Type Version
junit : junit jar

Project Modules

There are no modules declared in this project.

Versions

Version
5.1.0
5.0.1
5.0.0
4.1.0
4.0.0
3.0.1
3.0.0
2.0.0
1.2.0
1.1.0
1.0.0