Assume I have domain called mytest.com setup in cloudflare. I have created A record for www, pointing to Azure. In Azure I have one VM running on Apache to serve http (80) and https (443) at public ip A, for example. All these setup are working fine.
Now I have another VM at Azure to run Java socket at public ip B. I created another A record for subdomain chat.mytest.com pointing to this public ip B, port 443 at Azure.
Somehow, Cloudflare treats this chat.mytest.com, port 443 as web request. When I tried to access from chat socket client, I got this:
HTTP/1.1 400 Bad Request Server: cloudflare Date: Thu, 22 Jul 2021 09:41:57 GMT Content-Type: text/html Content-Length: 155 Connection: close CF-RAY: - <html> <head><title>400 Bad Request</title></head> <body> <center><h1>400 Bad Request</h1></center> <hr><center>cloudflare</center> </body> </html>
May I know how to process this ?