IP input and output
dridi.boukelmoune at zenika.com
Wed Jan 7 22:14:04 CET 2015
There is no simple way to do what you want, but it is possible using
the `server.ip` variable. You can then pick backends according to this
variable but you cannot automatically map a backend to a listen
address. Have a look at the manual, vcl(7).
You might also want to be careful with your hashes if you go down that road.
Please find attached a working test case to illustrate how you can
pick your backend, you can run it with varnishtest(1).
On Tue, Jan 6, 2015 at 7:24 PM, <hubert at htop.pl> wrote:
> Welcome. My varnish listen on many IPs. For example 127.0.0.1 127.0.0.2 and
> 127.0.0.3 on port 80. How to configure to relay/forward request to backend
> in this format:
> INPUT IP TO VARNISH | IP OF BACKEND
> 127.0.0.1 127.0.0.1
> 127.0.0.2 127.0.0.2
> 127.0.0.3 127.0.0.3
> Of course, the backend listens on other ports.
> Thank you.
> Hubert Nodzak-Pluta
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 597 bytes
Desc: not available
More information about the varnish-misc