Valentin V. Bartenev
June 19, 2014 03:34AM
On Thursday 19 June 2014 03:00:44 tsunny wrote:
> Hello,
>
> I want to access the value of $upstream_addr. Below is the code,
>
> location / {
>
> echo "up = $upstream_addr";
>
> }
>
>
> The response is just "up = " . What could be the reason for this?
>

The $upstream_addr variable keeps the addresses of the servers that were
contacted during request processing. So, if there aren't any at the
moment of evaluation of the variable, then it will be empty.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

$upstream_addr is returning blank

tsunny June 19, 2014 03:00AM

Re: $upstream_addr is returning blank

Valentin V. Bartenev June 19, 2014 03:34AM

Re: $upstream_addr is returning blank

tsunny June 19, 2014 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready