Re: split traffic

2019-05-22 Thread ender ulusoy
I've recompiled the nginx. That was the only way. Now it works fine. Thanks guys. 22 May 2019 Çar 16:33 tarihinde Francis Daly şunu yazdı: > On Wed, May 22, 2019 at 03:47:05PM +0300, ender ulusoy wrote: > > Hi there, > > > Thanks but I got an error. I can not find the required module. > > > > r

Re: split traffic

2019-05-22 Thread Francis Daly
On Wed, May 22, 2019 at 03:47:05PM +0300, ender ulusoy wrote: Hi there, > Thanks but I got an error. I can not find the required module. > > root@Net:~# nginx -t > nginx: [emerg] unknown directive "split_clients" in /etc/nginx/nginx.conf:598 > nginx: configuration file /etc/nginx/nginx.conf test

RE: split traffic

2019-05-22 Thread Reinis Rozitis
> Thanks but I got an error. I can not find the required module. > > root@Net:~# nginx -t > nginx: [emerg] unknown directive "split_clients" in /etc/nginx/nginx.conf:598 > nginx: configuration file /etc/nginx/nginx.conf test failed Well your nginx is compiled using --without-http_split_clients_mo

Re: split traffic

2019-05-22 Thread ender ulusoy
Thanks but I got an error. I can not find the required module. root@Net:~# nginx -t nginx: [emerg] unknown directive "split_clients" in /etc/nginx/nginx.conf:598 nginx: configuration file /etc/nginx/nginx.conf test failed nginx version: nginx/1.14.1 built by gcc 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.

RE: split traffic

2019-05-22 Thread Reinis Rozitis
> How can I achive this, any ideas? Thank you. > > > map $remote_addr $is_web_internal { >202.212.93.190 1; > default 0; > } > > if ($is_web_internal) { > return 301 https://new.domain.com.tr$uri ; > } Basically the same - you can just replace the map directive to split_clients

split traffic

2019-05-22 Thread ender ulusoy
Hi all, I want to split %10 of the traffic on nginx reverse proxy. I have a setup that runs 2 versions of the website on same servers. new.domain.com domain.com I want to route the traffic and redirect the %10 to new.domain.com on / location. Currently I only redirect internal requests to new.do