2
我的Tomcat运行在具有SSL证书的EC2 ELB后面的URLRewriteFilter中,ELB将流量从端口80和443重定向到后端实例中的端口8080。 URLRewriteFilter有这样的规则:URLRewriteFilter HTTP到HTTPS规则返回net :: ERR_TOO_MANY_REDIRECTS
<rule>
<condition type="scheme" operator="notequal">https</condition>
<condition name="host" operator="equal">ELB-DNS</condition>
<from>^/(.*)</from>
<to type="permanent-redirect">https://ELB-DNS/$1</to>
</rule>
但是当我试图打它,我得到这个:
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.