I would prefer not involving regular expressions when not needed.
You can also strip the port with field, ie:
http-request set-header host %[hdr(host),field(1,:)]
which way is best would depend on your config and taste.
I would prefer not involving regular expressions when not needed.
You can also strip the port with field, ie:
http-request set-header host %[hdr(host),field(1,:)]
which way is best would depend on your config and taste.