Closed ssrlive closed 1 week ago
Websockets are supported. You don't need that @websockets
matcher at all if you're matching by path.
Are you sure your URL is exactly /mypathbWrYWiWL/
or is there sometimes something past that like /mypathbWrYWiWL/foo
or without the trailing slash /mypathbWrYWiWL
? If so then that matcher is incorrect, it might need to be /mypathbWrYWiWL*
or /mypathbWrYWiWL/*
.
All you really need is this (don't need the route
, don't need the @websockets
matcher):
reverse_proxy /mypathbWrYWiWL/* 127.0.0.1:12948
I'll close this because it's a usage question and there's nothing actionable for us here. For next time, please ask your usage questions on the Caddy community forums. We prefer to keep the GitHub issue board for bugs and feature requests. Don't forget to fill out the thread template so we can help you!
I try to reverse proxy my special URI
/mypathbWrYWiWL/
asWebsocket
, but it always failed, it do not send package to target serverhttp://127.0.0.1:12948
at all.Here's my
Caddyfile
. What's wrong with it?The similar settings for
nginx
will work fine: