4 messages in ru.sysoev.nginxRe: upstream server:port variable ?
FromSent OnAttachments
Mansoor PeerbhoyFeb 26, 2008 4:21 am 
Eden LiFeb 26, 2008 11:06 am 
Igor SysoevFeb 26, 2008 11:15 am 
Igor SysoevFeb 26, 2008 11:17 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: upstream server:port variable ?Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Feb 26, 2008 11:17:01 am
List:ru.sysoev.nginx

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 ?