Re: Storing $server_addr in a variable VS using it directly in location block

2015-07-15 Thread Valentin V. Bartenev
On Wednesday 15 July 2015 07:45:34 itpp2012 wrote: > Valentin V. Bartenev Wrote: > --- > > On Tuesday 14 July 2015 21:46:58 justink101 wrote: > > > According to the documentation getting the value of $server_addr to > > > set a > > > response head

Re: Storing $server_addr in a variable VS using it directly in location block

2015-07-15 Thread itpp2012
Valentin V. Bartenev Wrote: --- > On Tuesday 14 July 2015 21:46:58 justink101 wrote: > > According to the documentation getting the value of $server_addr to > set a > > response header makes a system call, and can impact performance > > negatively

Re: Storing $server_addr in a variable VS using it directly in location block

2015-07-15 Thread Valentin V. Bartenev
On Tuesday 14 July 2015 21:46:58 justink101 wrote: > According to the documentation getting the value of $server_addr to set a > response header makes a system call, and can impact performance > negativelyset $ip $server_addr; > > server { > location /health { > add_header

Storing $server_addr in a variable VS using it directly in location block

2015-07-14 Thread justink101
According to the documentation getting the value of $server_addr to set a response header makes a system call, and can impact performance negativelyset $ip $server_addr; server { location /health { add_header Backend $server_addr; return 200; } } Wo