Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Add an ACL for FORCE_SSL situation. #235

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maskshell
Copy link

@maskshell maskshell commented Nov 2, 2017

When haproxy behind other load balance proxy, such as Amazon ELB, Aliyun SLB. If you use ELB to terminate the SSL, and the haproxy listen on HTTP only, then it will raises the "ERR_TOO_MANY_REDIRECTS" error.

But the load balancer can pass a additional X-Forwarded-Proto header to haproxy. So, if we add an ACL to process the X-Forwarded-Proto header, then will solve the problem.

Must combine with the global env var "SKIP_FORWARDED_PROTO".

#210

When haproxy behind other load balance proxy,
such as Amazon ELB, Aliyun SLB. If you use ELB to terminate the SSL, and the haproxy listen on HTTP only, then it will raises the "ERR_TOO_MANY_REDIRECTS" error.

But the load balancer can pass a additional X-Forwarded-Proto header to haproxy. So, if we add an ACL to process the X-Forwarded-Proto header, then will solve the problem.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant