-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 22/05/2015 09:06 μμ, Mrunmayi Dhume wrote: > Hello, > > I am using haproxy-1.6 with Lua. I have a use-case where I want to > set the destination (backend server) very dynamically, based on > certain layer 7 information (I am trying to avoid updating haproxy > configuration and make it complicated with a ~100 domain names and > their corresponding backend server name and do a map lookup, I > want lua to do it ) I am sorry what is the problem of using a dynamic use_backend rule like this: cat /backends.map foo.example.com backend1 bar.example.com backend2 xxx.example.com backend3 .... frontend catchall .... use_backend %[req.hdr(host),map(/backends.map)] default_backend backend_default Cheers, Pavlos -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVZFWOAAoJEIP8ktofcXa5IeAQAIYM5sk0CC7+QAnTI+g0WG/W JS51sbfnABy6yLXJKBJzVWVCYNW11RbxQENfCoEeREEJfktcrAHUjJTS0Il2HDGI KD1Kg/M7UV/DahQf/aP4BStchFFtuORuaCerDQ9RqFmEWZlpUVl1mae4yOmadXX5 +1UhlloKu8Gte3wmAY9FUyq6ZbwnicSk5SHXK2ekqEzHuu/ceh+fP95saD+ligwG bztljVBX145mIjFLmqs68bh+Pk3HOYPd7A27RqgXW/9qNUc4J3q3jDbHvDL2AfyG 10h9LbkpHYIk7ajbR8OdbD8lc3ipRmQbHzyXnontqR2WQ8KofwVfxPXanDjLVTb+ gId/kYQ/XkVsoDvF1R9cEOoOIdCc4pYmeVSfkwi2lHAJBUaMG3e/9DK18qBT8xca rbbYrNVJlyKtUl8f2Rg9z5ORDrXVGTxqV1z59tVFGWnrrG2dv8H51uERlRSQ6QqB oWpubyrktXa/dyCBKQalGLeuKgU30++IwQM9HAy4oGP9+XzNhndNP1Zj+QyIzzzm Y1QN/KJUqHEG/QfxHoZOt+F3RrniEsPLbYhUtk9ySiJM3i0iLDOwEpCuGgzpHmTv 0BQTjMACjCW5QmCLK3CCYw5U4N4AXffNrGk21bfAmHcMARWO0HzppMpWV5cJcq6d ORlYkXtcsulh70KLqrwI =xwJw -----END PGP SIGNATURE-----