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 f

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.

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

Re: redirect to another domain based on IP address

2019-05-07 Thread ender ulusoy
.app>, 6 May 2019 Pzt, 17:08 tarihinde şunu yazdı: > On 2019-05-06 16:47, ender ulusoy wrote: > > Main office ip 200.100.50.10 > > > > And it's shared office. I can not setup any dns services there. All > > the developers come from this ip. > > map $remo

Re: redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
Main office ip 200.100.50.10 And it's shared office. I can not setup any dns services there. All the developers come from this ip. On Mon, May 6, 2019, 4:45 PM Patrick <201904-ng...@jslf.app> wrote: > On 2019-05-06 16:18, ender ulusoy wrote: > > @Patrick Thanks, here is the

Re: redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
send to www.aaa.com/$request_uri from office ip (200.100.50.1); then Nginx will redirect all requests to stage.aaa.com/$request_uri All other requests from the world will go www.aaa.com On Mon, May 6, 2019, 1:23 PM Patrick <201904-ng...@jslf.app> wrote: > On 2019-05-06 12:10, ender ulusoy

redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
Hi Folks, We have a website under heavily development. So we divide the site to 3 branches stage, demo and main. What our developers want from me is : "every request from office ip address to main domain must redirect to stage." For an example if a developer makes a request to www.aaa.com then si

help needed : catch a url and use in a location block

2019-01-08 Thread ender ulusoy
Hello everyone, I have a website www.example.com. I just want to cache only pages includes adv_id. I'm using NGINX as a reverse proxy and 3 servers behind NGINX (Apache). An example URL is here: https://www.example.com/campains/a4/search?page=1&criteria%5Badv_id%5D=2004 I won't use cache on ot

How to handle 500 Error on upstream itself, While Nginx handle other 5xx errors

2017-07-07 Thread ender ulusoy
We have a NGINX reverse proxy (clustered) with 45 upstreams (22 domains, 20 subdomains, 11 apps). Some of our projects hosts apis for some users globally. Our developers designed special custom 500 responses for special cases and want to show that messages only for tomcat_api upstream. They want

Request_time is always 0.000

2015-03-26 Thread ender
Hello, I need to log transaction time, so I simply add $request_time to my log_format directive. Anyway the value in the access.log in always 0.000 even if the server is under heavy load (siege show transaction time up to 30 sec). This is a just a basic server with no more than one page for testin