Docker Community Forums

Share and learn in the Docker community.

Question regarding haproxy


(Mattcoalson) #1

So I have a node webserver that is using haproxy as a load balancer. Currently I have everything working fine but when I go to the load balancer endpoint at “http://lb.xxxxxxxx.svc.dockerapp.io:80” I’d like the url to show up as “http://dev.domain.com” instead of “http://lb.xxxxxxx.svc.dockerapp.io

Anyone know how to do this?

Cheers


(Lee Hull) #2

Add an environment variable VIRTUAL_HOST=dev.domain.com
and make sure the subdomain is pointed to the load balancers ip address