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
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
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;
-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.
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 {
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
> 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
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
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