Re: Choosing source-address for upstream connections

2013-05-17 Thread Bruno Prémont
On Fri, 17 May 2013 17:17:20 +0400 Ruslan Ermilov wrote: > On Fri, May 17, 2013 at 02:57:00PM +0200, Bruno Prémont wrote: > > Is there a way to tell nginx to use a specific address when talking to > > an upstream? > > > > I would like to do something like: > > > > upstream bla { > > server [

Re: Choosing source-address for upstream connections

2013-05-17 Thread Ruslan Ermilov
On Fri, May 17, 2013 at 02:57:00PM +0200, Bruno Prémont wrote: > Is there a way to tell nginx to use a specific address when talking to > an upstream? > > I would like to do something like: > > upstream bla { > server [D0C::1234]:8080 src [D0C::beaf]; > server 1.2.3.4:8080 src 1.2.3.5

Choosing source-address for upstream connections

2013-05-17 Thread Bruno Prémont
Is there a way to tell nginx to use a specific address when talking to an upstream? I would like to do something like: upstream bla { server [D0C::1234]:8080 src [D0C::beaf]; server 1.2.3.4:8080 src 1.2.3.5; server upstream.example.tld src site.example.tld; } My system h