Message Boards

Not able to access liferay portal over LAN after domain name change

Shankar Sitaraman, modified 7 Years ago.

Not able to access liferay portal over LAN after domain name change

New Member Posts: 10 Join Date: 5/14/15 Recent Posts
I have a default portal instance running on my server with portal instance setting Virtual host set to localhost.

Now server domain name is changed by system administrator and I am not able to access the portal over the LAN. It is accessible only on the server machine. I was accessing the portal instance over the LAN using the IP address of the server machine as http://ipaddress:8080

What changes has to be made in liferay portal instance to use my domain name so that the portal instance is accessible over the LAN.

I am using liferay liferay-portal-6.1.1-ce-ga2

Thanks

Shankar
thumbnail
Olaf Kock, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts
Shankar Sitaraman:
What changes has to be made in liferay portal instance to use my domain name so that the portal instance is accessible over the LAN.


This is actually a question for your network management. There might be a firewall, so that you strictly can't access port 8080 in that domain any more. try "ping ipaddress" and "ping your.new.domain.name" to see if you can reach the machine. If you go to http://your.new.domain.name:8080" and can't reach anything, either the domain name resolution is wrong or your access is firewalled (or a number of less likely conditions applies)

Tell your network administrator that you need to access the application on that server, port 8080, and they should be able to let you know if you can or can't. There's nothing that Liferay can do if your network access is blocked.
Shankar Sitaraman, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

New Member Posts: 10 Join Date: 5/14/15 Recent Posts
I changed the port to some other port and tried it still not accessible over the lan.

All these days I was able to access it using http://ipaddress:8080.

when I ping the ip address it is able to reach the server machine.

Recently the administrator added a domain and after that it is not accessible over the LAN but works on the server machine.

Should I change the virtual host configuration in portal setting to the domain name. Is this enough?

Thanks

Shankar
thumbnail
Olaf Kock, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts
If, by "not accessible" you mean that you get the browser's error message that the server is not available, there's nothing in Liferay's configuration that you can change. If you reach Liferay, but it's generating URLs with wrong host names, then this might be something on Liferay's side.
If there's no network firewall, there might also just be the local firewall on that server. You state that you changed the port to something else - this might have something to do with it. Or maybe changing the domain also changed the ip address of that server?
Shankar Sitaraman, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

New Member Posts: 10 Join Date: 5/14/15 Recent Posts
I changed the port number from 8080 to 9090 to check if it works , because I suspected the it might be because of port 8080 being blocked but , but that did not help. So I reverted to 8080.

Previous there was no domain.

local host was mapped to 12,0.0.1. I was able to access the portal using http://192.168.1.127:8080

Now a domain is created on server mapped with ip address 192,168.1.127. Now I am not able to access the portal with http://192.169.1.127:8080

I am able to reach the sever using ping 192.168.1.127

Thanks

Shankar
thumbnail
Gaurav Joshi, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

New Member Posts: 8 Join Date: 4/14/14 Recent Posts
Hi,

I am not sure about your configuration and network.
But you may try mapping 192.169.1.127 to domain name in your hosts file.
Please also check if there is proxy server involved, if so you will have to bypass the proxy server for LAN addresses.

You can do so in setenv.sh / bat file in tomcat portal server.
http.nonProxyHosts = "192.169.1.127"
https.nonProxyHosts = "192.169.1.127"


Hope this helps.
Shankar Sitaraman, modified 7 Years ago.

RE: Not able to access liferay portal over LAN after domain name change

New Member Posts: 10 Join Date: 5/14/15 Recent Posts
Thanks for the prompt reply.

I have already tried your suggestion of mapping 192.168.1.127 with domain in the host file . This did not help.

I don't think there is any proxy server. I will check. is the setting you are asking to make a JVM option.

JAVA_OPTIONS=-Dhttp.proxyHost=192.168.1.127

The problem happened after Active Directory service was installed and domain was configured. May be the firewall is blocking port 8080 , I will check. May I have to configure the inbound connection for the application on the port 8080

Thanks again for all the help provided

Thanks

Shankar