HAProxy config file and reqirep

haproxy

I am going through an existing HAProxy config file and trying to make sense out of it. I am new to HAProxy. What does the following line do?

reqirep ^Host:\ 180.115.110.100 Host:\ www.foo.com

Best Answer

It replaces lines matching Host: 180.115.110.100 with Host: www.foo.com in the HTTP header in a case insensitive way. See also the documentation.

Related Topic