websockify-nginx-module icon indicating copy to clipboard operation
websockify-nginx-module copied to clipboard

I always get error 400

Open Fjox opened this issue 4 weeks ago • 6 comments

the protocol is rdp and i use https://github.com/oxplot/tcp2ws to convert it back to tcp nginx/1.22.1

Fjox avatar Dec 04 '25 09:12 Fjox

did you set Sec-WebSocket-Key?

tg123 avatar Dec 05 '25 07:12 tg123

did you set Sec-WebSocket-Key?

this is not mentioneed anywhere so no

Fjox avatar Dec 06 '25 12:12 Fjox

https://datatracker.ietf.org/doc/html/rfc6455#section-11.3.1

This is ws protocol defined in rfc Please check if your client is compatible with rfc

tg123 avatar Dec 07 '25 20:12 tg123

https://datatracker.ietf.org/doc/html/rfc6455#section-11.3.1

This is ws protocol defined in rfc Please check if your client is compatible with rfc

https://github.com/oxplot/tcp2ws/issues/3#issuecomment-3635190989

Fjox avatar Dec 10 '25 10:12 Fjox

could you please share your config and minimal repro steps? i can see where is wrong

tg123 avatar Dec 11 '25 00:12 tg123

could you please share your config and minimal repro steps? i can see where is wrong

its literally just

	location /test {
		websockify_pass x.x.x.x:3389;
	}

Fjox avatar Dec 11 '25 08:12 Fjox