Re: Nginx with Java library

2019-05-22 Thread Patrick
On 2019-05-22 14:02, Jennie Jia wrote: > The java library is ONAP Portal/SDK If you can find the cookie decryption library, then you can call it from clojure -- though spinning up a clojure/java runtime to get access to a cookie seems to be expensive unless you're already writing clojure code. P

nginx proxy and Date header

2019-05-22 Thread Frank Liu
Is there a reason why by default nginx doesn't pass the "Date" header from upstream? http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html seems to indicate Date header shouldn't be altered: The HTTP-date sent in a Date

RE: Nginx with Java library

2019-05-22 Thread Jennie Jia
Hi Patrick, The java library is ONAP Portal/SDK The steps is: I login to Portal first, from the Portal, I click the Icon of my application component So for your question B), it is Brower-portal-nginx. I am trying do POC to see if nginx can do the work through the nginx.conf + using Port

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