Nginx Map how to check value if empty

2017-03-03 Thread c0nw0nk
So I have the following Map map $http_cf_connecting_ip $client_ip_from_cf { default $http_cf_connecting_ip; } How can I make it so if the client did not send that $http_ header it makes $client_ip_from_cf variable value = $binary_remote_addr Not sure how to check in a map if that http header is

Re: [no subject]

2017-03-03 Thread Aleksandar Lazic
Hi Anto. Am 26-02-2017 23:32, schrieb Anto: Hi Aleksandar, Thank you , my requirement is i need LB to redirect to same OHS server where i have multiple httpd server's running. So you need a stickyness, right?! There is a rather long post with a stickiness description https://www.nginx.com

Re: Large latency increase when using a resolver for proxy_pass

2017-03-03 Thread Maxim Dounin
Hello! On Fri, Mar 03, 2017 at 04:53:56AM -0500, user384829 wrote: > What about if we used a stream/tcp proxy_pass with resolver? Something like > this: > > resolver 8.8.8.8 8.8.4.4 ipv6=off; > > stream { > server { > listen localhost:81; > set $upstream_host my.upstream-host.com;

Re: Nginx configuration Issue

2017-03-03 Thread Dewangga Bachrul Alam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello! On 03/03/2017 04:15 PM, abhipower.abhi wrote: > I am using nginx-1.10.3 as a load balancer. In my architecture, I > have two servers- > > Hostname - sal15062hkb152, IP Address - 172.15.54.116 Hostname - > sal15062hkb184, IP Address - 172.15.

Re: Large latency increase when using a resolver for proxy_pass

2017-03-03 Thread user384829
Hi Maxim, Thanks for the reply. What about if we used a stream/tcp proxy_pass with resolver? Something like this: resolver 8.8.8.8 8.8.4.4 ipv6=off; stream { server { listen localhost:81; set $upstream_host my.upstream-host.com; proxy_pass $upstream_host:443; } } server {

Nginx configuration Issue

2017-03-03 Thread abhipower.abhi
I am using nginx-1.10.3 as a load balancer. In my architecture, I have two servers- Hostname - sal15062hkb152, IP Address - 172.15.54.116 Hostname - sal15062hkb184, IP Address - 172.15.54.105 I want both should work in active-passive mode with nginx. My application is running on both servers and c

AW: AW: IPv6 upstream problem

2017-03-03 Thread Lukas Tribus
> But, just curios, why IPv6 upstream can't serve the traffic? Because if you configure IPv6 on your system but don't have IPv6 connectivity, it will try and fail. > If I access the IP Address using browser, it's normal. Because the browser probably recognizes the broken configuration and work

Re: Balancing NGINX reverse proxy

2017-03-03 Thread polder_trash
Alexsamad, I might not have been clear, allow me to try again: * currently 2 NGINX revproxy nodes, 1 active the other on standby in case node 1 fails. * Since I am injecting an authentication header into the request, the HTTPS request has to be offloaded at the node and introduces additional load

Re: 回复:Re: Issue about nginx removing the header "Connection" in HTTP response?

2017-03-03 Thread Aleksandar Lazic
Hi. then one directive upward. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header Cheers aleks Am 03-03-2017 06:00, schrieb t...@sina.com: > Hi, > > What I mention is the header in response from backend server. Your answer > about proxy_set_header is the "Connec