How to chain reverse proxies with websockets?

(WoJ) #1

I need to chain two reverse proxies with the websocket parameter.

https://example.com -> http://example.com -> 172.1.1.1:9999
  • The first reverse proxy works great: Opening http://example.com gets me to the application

  • The second proxy has problems: I get to the application, but it informs me that there is a problem with the websockets.

Is it in principle possible to chain reverse proxies which also also need to proxify websockets?

(Matthew Fay) #2

I haven’t heard any reason websockets would specifically not work in a proxy chain, but I’ve never tried it myself.

What’s your Caddyfile?