The app proccess all virtual hosts replacing the prefix declared in the property virtual.host.old.prefix
with the prefix declared in the property virtual.host.new.prefix
. For instance if the database has the following virtual hosts:
- www.myliferay.com
- www.portalliferay.com
- newportal.com
and the properties are set as virtual.host.old.prefix=www
and virtual.host.new.prefix=dev
after the hook run the new value of virtual hosts will be:
- dev.myliferay.com
- dev.portalliferay.com
- dev.newportal.com
-Dvirtual.host.old.prefix=www -Dvirtual.host.new.prefix=dev
Fix Virtual Host App is licensed under Apache 2 license.
Fix Virtual Host App is available on Maven central, the artifact is as follows:
Maven:
<dependency>
<groupId>br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app</groupId>
<artifactId>fix-virtual-host-app</artifactId>
<version>1.1.0</version>
<type>lpkg</type>
</dependency>
Gradle:
dependencies {
compile(group: "br.com.thiagomoreira.liferay.plugins.fix-virtual-host-app", name: "fix-virtual-host-app", version: "1.1.0", type: "lpkg");
}
Fix Virtual Host App tracks bugs and feature requests with Github's issue system. Feel free to open your new ticket!
Fix Virtual Host App is a project based on Maven to improve it you just need to fork the repository, clone it and from the command line invoke
mvn package
After complete your work you can send a pull request to incorporate the modifications.
Enjoy!