Hi Folks, I hope you can help me. I am running aaPanel 7.015 on Debian GNU/Linux 11 x86_64(Py3.12.3) with nginx and php-82. My project is to open a websocket server with php (library cboden/ratchet - reactphp or library phrity/websocket : both implemented via composer). Both are running on a local dev system. But neither ratchet nor phrity websocket can establish a websocket server on aaPanel.
But if I create a websocket server with nodejs, than this is running quite smooth. So I think the problem relies on php. The nginx configuration seems to be ok, cause the nodejs websocket server runs stable.
I tried to debug with wscat and openssl.
CMD: wscat -c wss://xyz:10000
wscat output:
error: Client network socket disconnected before secure TLS connection was established
CMD: openssl s_client -connect xyz:10000
openssl output:
Connecting to xyz
CONNECTED(00000005)
write:errno=54
no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 328 bytes
Verification: OK
New, (NONE), Cipher is (NONE)
This TLS version forbids renegotiation.
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
Thanks for your help!