Can someone explain what the "X-Forwarded-Proto2" header is in this HAProxy frontend stanza?:
frontend main *:443
...
reqirep ^(X-Forwarded-Proto:)(.*) X-Forwarded-Proto2:\2
...
I understand that HAProxy is injecting a HTTP header. But why is there a 2 at the end of the new string? I'm referring to the number "2" at the end of the header, not the regex backreference.