Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How can I access to Liferay in a machine without UI
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.
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.
Thank you so much Olaf.