On Tue, May 10, 2016 at 8:13 PM, Derek Brown <derekwbr...@gmail.com> wrote: > Hello- > > I am trying to write a configuration which will allow me to choose the > back-end port dynamically. > > Specifically, I'd like to listen on port 443, and then choose the backend > port based on an http header > in the request. Something like > > frontend myserver > bind 443 > mode http > > server real-server 192.168.1.1:req.hdr(X-My-Header) > > --OR-- > server realserver 192.168.1.1:%[req.ssl_sni,lower,map(mapfile)] > > > where mapfile contains > hosta.domain.com 1001 > hostb.domain.com 1002 > > or similar. > > Is there any facility which would allow this, including the new(er) Lua > capabilities? > > Thanks, in advance
Hi Derek, Could you please explain us your use case? Baptiste