Message Boards

After NGINX LB configuration

Deepak Panda, modified 2 Years ago.

After NGINX LB configuration

New Member Posts: 18 Join Date: 4/19/19 Recent Posts

Hi,

I have successfully implement NGINX with 2 liferay instance, but can not open login page with individual server instance. Anyone have any idea.

Explain- 

LB server IP- xx.xx.xx.xx

Liferay sever 1 IP- yy.yy.yy.yy

Liferay sever 2 IP- zz.zz.zz.zz

Now if I want to open liferay login from   yy.yy.yy.yy:8080, it automatically redirect to LB server IP and open the login page. So I can not identify which liferay server it is connected now.

Kindly provide any solution for it.

 

thumbnail
Olaf Kock, modified 2 Years ago.

RE: After NGINX LB configuration

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

You say you have "successfully implemented" a load balancer and then document that you didn't.

Whatever you've configured: Add "sticky sessions" to it. Liferay's cluster-setup-documentation contains some hints on it - e.g. the loadbalancer balances the first request to one server - then all subsequent requests go to the same server.

On second sight, it looks like you're first implementing a loadbalancer, then try to circumvent it. What's the point?

Deepak Panda, modified 2 Years ago.

RE: RE: After NGINX LB configuration

New Member Posts: 18 Join Date: 4/19/19 Recent Posts

Hi Olaf,

Thanks for ur answer, but my concern is not that.

I want to open liferay landing page from individual IP.

Suppose my running liferay server IPs with port are -  192.168.32.12:8080   and   192.168.32.13:8080.

My loadbalancer IP- 192.168.32.20

So after all configuration, whenever I am trying to open landing page from 192.168.32.20 (LB), it was successfully load the page.

But I want to open the landing page from direct hit of IP- 192.168.32.12:8080  from browser, which is not possible and it redirected to 192.168.32.20. So kindly help me to know, after such LB configuration how I can also open liferay landing page from individual IPs.