HTTP到HTTPSredirect到AWS ELB和Tomcat7服务器

我有一个指向AWS ELB的子域(test.XXXX.com),它接受HTTP(80)和HTTPS(443)请求。 我已将SSLauthenticationconfiguration为443用于HTTPS连接。 我已经尝试在Tomcat级别通过更改web.xml和server.xml来进行HTTPSredirect

http://www.journaldev.com/160/steps-to-configure-ssl-on-tomcat-and-setup-auto-redirect-from-http-to-https

但问题是我需要一个端点用于AWS ELB运行状况检查,而不会执行HTTP到HTTPS的redirect。 我尝试了不同的解决scheme,但没有成功。我也尝试过

<security-constraint> <web-resource-collection> <web-resource-name>Protected Context</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>Protected Context</web-resource-name> <url-pattern>/XXXXX/XXXXXX.html</url-pattern> </web-resource-collection> </security-constraint> 

而我的服务器server.xml具有以下configuration

 <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" /> <Connector port="443" maxThreads="2000" scheme="https" secure="true" SSLEnabled="true" keystoreFile="/home/XXXXX/XXXXX.keystore" keystorePass="XXXXX" clientAuth="false" keyAlias="XXXX" sslProtocol="TLS" protocol="org.apache.coyote.http11.Http11Protocol"/> 

但是当试图通过浏览器访问它时,它会给出exceptionERR_TOO_MANY_REDIRECTS。

Amazon ELB将stream量redirect为(80 —> 80)和(443 —> 80)