I would suggest you do not use a DEV build for your production environment.
To answer your question, I would assume you're going to use HAProxy version 1.4:
Is it possible to do what I am proposing using HAProxy or should I look for a different solution?
Yes. It is possible but you have to use another software to handle the HTTPS
traffic. Stunnel is proven to be good in this. So I'd say the setup is going to be:
HAProxy 1.4
# Redirect http://../login to https://../login frontend HTTPSRedirect bind 1.2.3.4:80 default_backend AppServers redirect prefix https://www.domain.com/login if { path_beg -i /login } # Handler for requests coming from Stunnel4. frontend HTTPReceiver bind 5.6.7.8:80 default_backend AppServers
Stunnel4
[https] accept=443 connect=5.6.7.8:80 (HAProxy IP)