This is not possible for Tomcat. The HTTPS connector will only accept SSL connections.
We have such a proxy server developed in-house. This is not so difficult to do. You just need to check the first incoming packet. Search for an SSL confirmation template. We are only looking for CLIENT_HELLO. Once you figure out the protocol, you can redirect the request accordingly.
This is really ugly. You should not do this if possible. We must do this because legacy clients do this and it is not possible to update them all.
source share