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
Virtual host set to localhost
Hi,
I'm modifying the existed liferay project.
I took Database sql file from Development server.
I imported into my local system.
Then, when I entered this URL : http://localhost:8082 it redirects to System Error page.
To solve this problem, I updated virtualHost column value to localhost in company table of liferay.
Now, This URL is working http://localhost:8082. But this URL is not working http://192.168.0.53:8082
Here, 192.168.0.53 is my system IP.
Please, suggest me to solve this problem.
I'm modifying the existed liferay project.
I took Database sql file from Development server.
I imported into my local system.
Then, when I entered this URL : http://localhost:8082 it redirects to System Error page.
To solve this problem, I updated virtualHost column value to localhost in company table of liferay.
Now, This URL is working http://localhost:8082. But this URL is not working http://192.168.0.53:8082
Here, 192.168.0.53 is my system IP.
Please, suggest me to solve this problem.
You need to bind the server to IP Address.
For example if you are using JBoss then the run command at command prompt is as below.
run.bat -Djboss.bind.address=xxx.xxx.xxx.xxx
If you give IP address as 0.0.0.0 then it works for localhost as well.
Please let me know whether this fix is resolved or not.
For example if you are using JBoss then the run command at command prompt is as below.
run.bat -Djboss.bind.address=xxx.xxx.xxx.xxx
If you give IP address as 0.0.0.0 then it works for localhost as well.
Please let me know whether this fix is resolved or not.