Categories
Uncategorized

How to redirect every request to defined domain to particular location

Recently, I have moved my personal source code to GitLab. It rendered self-hosted git repository at repository.sleeplessbeastie.eu obsolete, so I have created simple redirection on HAProxy load balanced to cover this specific case.

Categories
SysOps

How to use variable to choose HAProxy backend

Define and use a variable to dynamically choose HAProxy backend depending on the URL parameter, HTTP header field, and cookie value.

Categories
Uncategorized

How to block defined IP addresses on HAProxy

Block defined IP addresses on HAProxy load balancer using simple Access Control List.

Categories
Uncategorized

How to define basic authentication on HAProxy

Define basic authentication on HAProxy load balancer limit access to specific backends.

Categories
Uncategorized

How to define allowed HTTP methods on HAProxy

Define allowed HTTP methods on HAProxy load balancer using simple Access Control Lists.

Categories
SysOps

How to configure HTTP/2 in http mode on HAProxy and fix bad request problem

Enable HTTP/2 on HAProxy 1.8 and temporarily fix the bad request problem with the Nginx backend using FastCGI/uWSGI.

Categories
Uncategorized

How to install HAProxy 1.8 on Ubuntu 16

Install recent HAProxy version to take advantage of the new fancy features.