问题原文
原帖链接 · AussieDude · CC BY-SA 3.0
Our website needs HIPAA compliance so everything needs to be encrypted. I don't want client to get an error message when they put in "http://mysite.com", so I need to support both HTTP and HTTPS, and redirect HTTP to HTTPS. Am I right?
I did it correctly on the web servers. So if I directly connect to the web servers, HTTP is automatically redirected to HTTPS. All good.
But the web servers are sitting behind an AWS Application Load Balancer. I don't know how to redirect HTTP to HTTPS on the ELB. So client browsers can still connect to the ELB through HTTP.
How to set up HTTP => HTTPS on an AWS Application Load Balancer?
In other words, I am sure the connection between the ELB and web servers are HTTPS, but how to make sure the connection between the client browsers and the ELB are HTTPS?
社区高分解答
原帖链接 · John Pope · CC BY-SA 4.0
As of July 2018, this is supported on application load balancers.
- Add/Edit your
HTTP:80listener - Set the action to
Redirect - protocol:
https - port:
443 - set the next dropdown to
Original host, path, query - set the last dropdown to
301 - Permanently moved
Image of settings for an HTTP to HTTPS listener on AWS application load balancer
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
