Congiruate Apache to translate WSS to standard SSL?
14:22 23 Jul 2026

I have written a server application that accepts sockets via standard SSL (technically TLS) on port 9005. (This should not be important, but just in case, the server is written in Java using the built-in Java javax.net.ssl.SSLServerSocket.)

This application runs on a public server that is using Apache to serve web pages.

I can connect to the application just fine using standard SSL (for example, Putty). However, I would like to write a web app in Javascript which connects to this application via secure WebSockets (wss).

The problem I'm having is that WebSockets start by sending an HTTP upgrade request which my application is not expecting and cannot handle. I'd like to avoid rewriting my server application to handle this special WebSocket protocol.

Is there a way that Apache can automatically translate between WSS and SSL for me so that I don't have to rewrite my application? In other words, when a web browser opens a secure WebSocket to wss:mysite.com:9005, Apache will automatically open a standard SSL socket to my server application on port 9005 and then they can communicate as if the WebSocket connection were a standard SSL socket.

I've found several answers about translating WSS to WS, but I don't want that. I want to translate WSS to standard SSL/TLS.

apache ssl websocket