Hi, 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). Dridi On Tue, Jan 6, 2015 at 7:24 PM, <[email protected]> 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 > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
server_ip.vtc
Description: Binary data
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
