In the [Configuring haproxy load balancer in front of ha artifactory cluster](https://stackoverflow.com/questions/61538346/configuring-haproxy-load-balancer-in-front-of-ha-artifactory-cluster/61647212) question was requested how to migrate to a newer HAProxy version. The original answer from JFrog Support is from 2018-02-05 [How to configure HAProxy with Artifactory?](https://jfrog.com/knowledge-base/how-to-configure-haproxy-with-artifactory/) which looks wrong because there are some missing characters. ``` # wrong reqirep ^([^ :]*) /v2(.*$) 1 /artifactory/api/docker/docker/v22 # right reqirep ^([^ :]*) /v2(.*$) \1 /artifactory/api/docker/docker/v22\1 ``` I assume that the HAProxy config for the knowledge-base article is this file https://github.com/jfrog/artifactory-scripts/blob/master/proxyexamples/haproxy/haproxy-ports.cfg In general should the config be adopted to the new HAProxy versions. This means. * replace `reqadd` with `http-request set-header ` * replace `reqirep` with `http-request replace*`
In the Configuring haproxy load balancer in front of ha artifactory cluster question was requested how to migrate to a newer HAProxy version.
The original answer from JFrog Support is from 2018-02-05 How to configure HAProxy with Artifactory? which looks wrong because there are some missing characters.
I assume that the HAProxy config for the knowledge-base article is this file https://github.com/jfrog/artifactory-scripts/blob/master/proxyexamples/haproxy/haproxy-ports.cfg
In general should the config be adopted to the new HAProxy versions.
This means.
reqaddwithhttp-request set-headerreqirepwithhttp-request replace*