如何在SSL终端负载均衡器后面设置nginx以重定向到某个主机的https

如何在SSL终端负载均衡器后面设置nginx以重定向到某个主机的https

您好我在EC2(负载均衡器)后面的EC2中有一个Web服务器(运行nginx),它终止了SSL连接.如果有请求到www.domain.com,它将转到http到ELB并传递给nginx服务器上的http如果有对secure.domain.com的请求,它应该转到https到ELB并传递给http到nginx服务器.如果请求来自ht

amazon-web-services – Elastic Beanstalk Http重定向到Https

amazon-web-services – Elastic Beanstalk Http重定向到Https

我知道之前已经问过这个问题,但似乎没有什么对我有用.我尝试过多种不同的东西,例如这些问题中描述的答案:How to get Elastic Beanstalk nginx-backed proxy server to auto-redirect from HTTP to HTTPS?Redirecting EC2 elb from http to https

设置Elastic Load balancer后,我的https不再起作用了. Nginx错误

设置Elastic Load balancer后,我的https不再起作用了. Nginx错误

我有一个常规实例,当不在负载均衡器后面时工作正常.我设置了一个ELB,其中80转发到80和443转发到443和粘性会话.之后,我转到任何https页面时都会收到此错误.The plain HTTP request was sent to HTTPS port 我处理在我的nginx配置中的某些页面上强制https的过程