How to config reverse proxy of websocket service with path rewriting in Caddy2?
My requirement is to reverse proxy requests from the /ws_yk path to the service on port 8091 after removing the _yk suffix. Port 8091 is a Spring Boot application with an endpoint at the /ws path. The current issue is that direct access results in a 404 error. The logs are as follows.
here is my Caddyfile