Enable HTTP_X_FORWARDED_FOR in Haproxy

By default, Haproxy won’t forward visitor IP address to backend servers. To enable Haproxy forward visitor IP address to backend

Enable SSL in Haproxy Docker Container

Enable SSL in Haproxy Docker Container

I have a haproxy container running on port 80. This container is started with command This haproxy used following configuration

Haproxy Site With SSL

Haproxy Site With SSL

To handle SSL/HTTPS traffic on haproxy, use following config in your /etc/haproxy/haproxy.cfg file. domain.pem SSL certificate of your domain in

haproxy

haproxy

To install haproxy on Ubuntu, run Enable HTTP_X_FORWARDED_FOR in Haproxy Show X-Forwarded-For IP in Apache Haproxy Site With SSL Enable