On Feb 26, 2017 12:14, "Andrew Smalley" <[email protected]> wrote:
Hello Bartek I think the portion of my example you wanted is below In my example I have a redirect from http to https and as such there is a acl force src if my local ip address Here I add the HSTS and then redirect 301 as you wanted. http-response set-header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload;" Andrew, I don't think http-response <anything> is going to be processed when the request results in a redirect generated internally by HAProxy... is it? The response isn't really from a back-end, so I wouldn't expect those rules to fire.

