- 2025年05月29日
- 星期四

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

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