I have a HAProxy set up to redirect traffic to a few internal servers.
What I'm trying to do is to set some response headers, based on the request host. Unfortunately I can't get it to work.
Current settings look like this
acl mywebsite req.hdr(host) -i example.com
http-response set-header X-Frame-Options SAMEORIGIN if mywebsite
http-response set-header X-XSS-Protection 1;mode=block if mywebsite
http-response set-header X-Content-Type-Options nosniff if mywebsite
As I understood http-response set-header can't read the request header. Is there any way around this?