AWS Application Load Balancer将所有www和非http重定向到https://

时间:2020-01-30 23:10:46

标签: amazon-web-services load-balancing aws-load-balancer aws-application-load-balancer

我有一个规则设置,可将所有流量从http重定向到https

enter image description here

如何将http://www重定向到https://?据我所知{host}变量包含www,我无法删除它。

1 个答案:

答案 0 :(得分:1)

实际上很简单
不用在规则中写{host},只需输入网站名称即可。
因此,例如,它看起来像这样: https://example.com:443/#{path}?#{query}