Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Old 'reqirep' directive not supported anymore use 'http-request replace-header' instead. HELP PLS!

$
0
0

Hi guys I’m not a HAProxy user so in short history after upgrade our distro to Ubuntu 22.04 haproxy was upgraded too, many things are working or were fixed but I still has a little issue.

Current Version : haproxy version is 2.4.22-0ubuntu0.22.04.1
Old Version: haproxy version is 1.8-0ubuntu0.18.04.1

==== CONFIG LINES WITH ISSUES
#Media Server (thumbor) - Collection
backend thumbor-collection
option forwardfor
option http-server-close
#Original line follow.
#reqirep ^([^\ :])\ /img-collection/(.) \1\ /\2
http-request replace-header ^([^\ :])\ /img-collection/(.) \1\ /\2
server vsp-meds-01-collection1 xxx.xxx.xxx.xxx:9010 check
server vsp-meds-01-collection2 xxx.xxx.xxx.xxx:9011 check

Since reqirep was replaced by “http-request replace-header” I try to fix the line it say that need a 3rd parameter I guess is acording to manual → here BUT what NAME means and how use it?
May someone please help me to fix it ? and better to understand how it work to solve future problems?

Just suggestion I found HA a very good product but doccu is not for newbies.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>