upstream server:port variable ?

Igor Sysoev is at rambler-co.ru
Tue Feb 26 22:17:24 MSK 2008


On Tue, Feb 26, 2008 at 11:06:28AM -0800, Eden Li wrote:

> Not sure if this is available at the stage in the request that you  
> want it, but you could try:
> 
> $upstream_addr -- address of the upstream server that handled the  
> request

No, first, $upstream_addr is not read at this stage, and second,
it's in unsuitable format: "192.168.1.1:80, 192.168.1.2:80".

> via: http://wiki.codemongers.com/NginxHttpUpstreamModule
> 
> On Feb 26, 2008, at 4:22 AM, Mansoor Peerbhoy wrote:
> 
> >Which variable should I use in order to get the precise name of the  
> >selected upstream server ?
> 
> 

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list