WebSockets through Apache and Tomcat: HTTP upgrade is not supported by the AJP protocol
问题 I am developing with WebSockets, and made a working web application running on Tomcat 8. However, when testing with Apache 2 in front of it, the client is getting an HTTP 500 and the Tomcat log says: java.lang.UnsupportedOperationException: HTTP upgrade is not supported by the AJP protocol at org.apache.coyote.ajp.AbstractAjpProcessor.action(AbstractAjpProcessor.java:587) at org.apache.coyote.Request.action(Request.java:379) at org.apache.catalina.connector.Request.upgrade(Request.java:1886)