AMP AMP
AMP
0
AMP

HAProxy : HTTP Header re-write

Hi, How can i rewrite a HTTP header in HAProxy for my host name, i want the http header must take my domain name instead of the ip address. How can i achive that in HAProxy? Thanks in advance.

Load balancer HAProxy HTTP header Add a comment
a sample image
ajinfernando
asked Mar 30 2018

Answer

AMP
0
AMP

You can use the below line on your haproxy configuration file for rewriting http header

http-request set-header Host yourdomain.com
Add a comment
a sample image
parthiban
asked Apr 15 2018
edited Oct 05 2018
Post your Answer