HTTP Load Balancing and Sticky Sessions With Docker and Apache


Apache server can be used as both: as a HTTP server and as proxy server for load balancing purpose. In this video I show how to build and run docker image with Apache server as a proxy server for HTTP load balancing with sticky sessions support.

In this video, starting from 3:15 min till 3:40 min, I added in Dockerfile apache2 and apache2-proxy, but actually, there is not necessary adding apache2 and apache2-proxy to Dockerfile, because it already preset in httpd:2.4.27-alpine image.


hi, can show your implement centos/httpd yml?

Kailash Karki 


Henri Jacobo 

Could you please send me your final dockerfile?

Achmad Alfian Hidayat