Welcome! Log In Create A New Profile

Advanced

Nginx Load balancer mode for JBoss / Icefaces application

Srinivasan Subramanian
November 14, 2011 08:06AM
Hello
We have setup nginx as a Loadbalancer on Centos 5.2 x64. nginx is acting as a LB for a web application developed using Java servlets and Icefaces (1.8.2). The web application is deployed on JBoss 5.1. After configuration nginx is able to redirect the queries to the upstream servers properly. However the session information is not being passed through or is being modified. So the Icefaces servlet is repeatedly refreshing the login page every few seconds and keeps creating new sessions.
Please advise on any additional settings that need to be made. The current settings are:
(nginx is running on 192.168.1.137)
upstream int-lb { server 192.168.1.139:8080; server 192.168..1.138:8080;}
server { listen 80; server_name int-lb;
#charset koi8-r; access_log /var/log/nginx/host.access.log main; error_log /var/log/nginx/host.error.log debug; root /usr/app/jboss5/server/default/deploy/admin-console.war;
location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://int-lb; }}
Thanks in advance for all assistance.

Regards
Srini _______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Load balancer mode for JBoss / Icefaces application

Srinivasan Subramanian November 14, 2011 08:06AM

Re: Nginx Load balancer mode for JBoss / Icefaces application

姚伟斌 November 14, 2011 09:50PM

RE: Nginx Load balancer mode for JBoss / Icefaces application

Srinivasan Subramanian November 14, 2011 10:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready