RE: How can I access to Liferay in a machine without UI

Jamie Sammons, modified 1 Year ago. New Member Posts: 2 Join Date: 9/10/24 Recent Posts

Hi,

I am new with Liferay, I have recently installed v7.4 using docker in a Ubuntu machine that not have UI. When I enter http://<IP>:8080 from other machine, liferay redirects me to http://localhost:8080 and I cannot access. The log shows "Set the property "virtual.hosts.valid.hosts" in portal.properties to allow "<IP>" as a domain", but I cannot find portal.properties file.

Can anyone help? 

Thanks and regards.

thumbnail
Olaf Kock, modified 1 Year ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

In your "liferay home" directory (in the bundle that's typically the topmost directory, also containing "tomcat" and "data", create a file named portal-ext.properties - this overloads all values defined within it. It can hold your configuration.

However, I typically do not come across such behavior, and Liferay stays on the same host that it's being accessed on. Did you configure something else earlier or is this a clean installation? Or is it so​​​​​​​ clean that this might be the setup-wizard - in that case you can also disable it, but then you'll need to configure the database in the same portal-ext.properties as well (otherwise you'd run on mysql).

Easiest, in case you want the setup-wizard: Run the server once on a different computer with a UI, submit setup-wizard data and shut down the server. then copy the contents of portal-setup-wizard.properties into your portal-ext.properties file from above.

Jamie Sammons, modified 1 Year ago. New Member Posts: 2 Join Date: 9/10/24 Recent Posts

Thank you so much Olaf.