Re: [Dev] unknown directive "sticky" when configuring Nginx

2015-08-12 Thread Deependra Ariyadewa
On Wed, Aug 12, 2015 at 1:47 PM, Udara Liyanage wrote: > Hi Akila, > > Error got resolved when I removed below parameters > > sticky learn create=$upstream_cookie_jsessionid >lookup=$cookie_jsessionid >zone=client_sessions:1m; > You have only one upstream server according

Re: [Dev] unknown directive "sticky" when configuring Nginx

2015-08-12 Thread Deependra Ariyadewa
On Wed, Aug 12, 2015 at 11:37 AM, Akila Ravihansa Perera wrote: > Hi Udara, > > Sticky sessions are only available in Nginx Plus (enterprise version). Or > else you need to compile Nginx with sticky session module [1] to get it > working. > You can achieve session affinity with NGINX community v

Re: [Dev] unknown directive "sticky" when configuring Nginx

2015-08-12 Thread Udara Liyanage
Hi Akila, Error got resolved when I removed below parameters sticky learn create=$upstream_cookie_jsessionid lookup=$cookie_jsessionid zone=client_sessions:1m; On Wed, Aug 12, 2015 at 11:37 AM, Akila Ravihansa Perera wrote: > Hi Udara, > > Sticky sessions are only availab

Re: [Dev] unknown directive "sticky" when configuring Nginx

2015-08-11 Thread Akila Ravihansa Perera
Hi Udara, Sticky sessions are only available in Nginx Plus (enterprise version). Or else you need to compile Nginx with sticky session module [1] to get it working. [1] https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview Thanks. On Wed, Aug 12, 2015 at 10:45 AM, Udara Liyanage

Re: [Dev] unknown directive "sticky" when configuring Nginx

2015-08-11 Thread Lakshani Gamage
Hi Udara, When I was configuring nginx, I got the same issue. I followed the following steps to fix the issue. 1. Remove every thing related to Nginx. sudo apt-get purge nginx nginx-common 2. Install the Nginx plus using instructions in https://cs.nginx.com/repo_setup

[Dev] unknown directive "sticky" when configuring Nginx

2015-08-11 Thread Udara Liyanage
Hi, I got the following error message when following [1] for Nignx configuration. $ sudo service nginx status ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled) Active: active (running) (Result: exit-code)