https / SSL到AWS ELB和ELB到Tomcat非SSL / HTTP

问题描述 投票:0回答:1

I have configured an AWS ELB with 443 HTTPS port to support Https incoming request. However, from ELB I want to point to a target EC2 which has a tomcat server running on port 80 without any SSL configuration.

I don't want to configure SSL at Tomcat level

My listener is pointing to a target EC2(running tomcat) on port 80

I am getting 503 Bad Gateway error

I have tried following configuration at server.xml

(1)

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

(2)

<Connector
    port="80"
    protocol="HTTP/1.1"
    proxyPort="443"
    scheme="https"
    secure="true"
    proxyName="example.com"
    connectionTimeout="20000"
    URIEncoding="UTF-8"
    redirectPort="8443" />

这可能吗 ?

我将不胜感激所有的建议和帮助来解决这个问题。

amazon-web-services tomcat https elastic-load-balancer aws-elb
1个回答
0
投票

在尝试选项后,我找到了解决方案。

(1)是的,可以在ELB级别使用https,在正常的http端口80上运行EC2 tomcat

(2)Mistek我做的是我正在创建一个443端口的目标。我应该创建一个指向80端口的目标

(3)在Load Balance级别创建一个侦听器,并映射指向端口80的目标

通过这些步骤,我解决了我的问题。

© www.soinside.com 2019 - 2024. All rights reserved.