@Mbart wrote:
Hello,
I’m wuold like use haproxy in front of my IIS application ASP.net, which is in intranet.
My public dns must be change from www.myapp.com to myapp.intra.net so I’m using http-request set header to rewrite host header:
backend coappesed01
mode http
option http-server-close
option forwardfor
acl hdr_myapp req.hdr(host) -i www.myapp.com
http-request set-header Host myapp.intra.net if hdr_myapp
server server01 myapp.intra.net:80 cookie server01 check inter 60 fastinter 20 fall 3 rise 2 weight 100Thi configuration doesn’t work because haproxy insert “set-cookie” on the reposnse cookie and not in the request cookie, so my application doesn’t work.
How can I configure haproxy to rewrite hostheader and leave unchanged cookies?
Thank a lot
Marco
Posts: 1
Participants: 1