Ich kann anscheinend keine Lösung dafür finden, aber wenn ich meine Anwendung auf tomcat hinter einem Load Balancer ausführe, wird der folgende Fehler angezeigt:
ERROR cpr.AsynchronousProcessor - Ungültiger Anforderungsstatus. Websocket-Protokoll wird nicht unterstützt.
Hinweis :-
Aktiviert das Proxy-Protokoll mit dem folgenden Befehl.
#aws elb create-load-balancer-policy--load-balancer-name Mag-ELB --policy-name EnableProxyProtocol --policy-type-name ProxyProtocolPolicyType --policy-attributes AttributeName = ProxyProtocol, AttributeValue = True
Richtlinie für den Back-End-Instanz-Port erstellt.
#aws elb-set-load-balancer-richtlinien-für-back-end-server --load-balancer-name Mag-ELB --instanz-port 80 --policy-names EnableProxyProtocol
Antworten:
0 für die Antwort № 1Ich habe diese Richtlinie nicht festgelegt und konnte das Websocket mit Tomcat 7 hinter AWS ELB ausführen, indem Load Balancer Port = 80 und Instance Port = 80 (Procotol TCP) festgelegt wurden.
Ich habe es aber nicht geschafft, dass dies mit SSL funktioniert.