title: Cloudflare Error 525 (if trying to connect via https ports) websocket
body: <p>I'm currently trying to test a websocket based php chat.
  <a href="https://github.com/sanwebe/Chat-Using-WebSocket-and-PHP-Socket" rel="nofollow noreferrer">https://github.com/sanwebe/Chat-Using-WebSocket-and-PHP-Socket</a></p>
  <p>This is what I'm currently trying just to <strong>test</strong>.
  But I'm using cloudflare &amp; normally it should work fine using cloudflare but I always get</p>
  <pre><code>Error 525
  SSL handshake failed
  </code></pre>
  <p>when I try to visit it like that:
  <a href="https://example.com:2096/chat/server.php" rel="nofollow noreferrer">https://example.com:2096/chat/server.php</a></p>
  <p>&amp; same result if I try to use the chat ofc. but that's for every domain using https ports, 8443 same result etc.</p>
  <p>I'm using &quot;Full (strict)&quot; mode &amp; I have a signed certificate installed by cloudflare installed, so I don't really know where the problem is, using wss &amp; it worked when I disabled SSL, but I want to make it work over SSL ofc.</p>
  <p>visiting my website without using https ports works fine, so it can't be the &quot;strict&quot; mode, tested normal &quot;full&quot; &amp; flexible but same result.</p>
  <p>Thanks for any help in advance.</p>
  <p>edit--</p>
  <p><a href="https://pastebin.com/fTQ2E92W" rel="nofollow noreferrer">config (site infinite loading)</a></p>
  <p><a href="https://pastebin.com/pwHKg8Am" rel="nofollow noreferrer">error log file</a></p>