title: CloudFlare "SSL: Flexible" HTTPS not working on custom ports
body: <p>I have my domain on CloudFlare pointing at DigitalOcean Droplet's IP Address. While trying to access website through domain on CloudFlare using custom ports I get: <code>error 525 SSL handshake failed</code>. My CloudFlare <code>Crypto SSL is set to: Flexible</code> (...as I understand - no SSL is required on DigitalOcean droplet).</p>
  
  <hr>
  
  <p><strong>Example addresses:</strong></p>
  
  <p>Through <strong>DigitalOcean IPv4</strong> (no SSL installed on server)</p>
  
  <p><a href="http://46.101.xxx.xxx/" rel="nofollow noreferrer">http://46.101.xxx.xxx/</a> <em>- 100% working</em></p>
  
  <p><a href="https://46.101.xxx.xxx/" rel="nofollow noreferrer">https://46.101.xxx.xxx/</a> <em>- 0% not working at all (server set up for :80)</em></p>
  
  <p><a href="http://46.101.xxx.xxx:2053/api" rel="nofollow noreferrer">http://46.101.xxx.xxx:2053/api</a> <em>- 100% working</em></p>
  
  <p><a href="http://46.101.xxx.xxx:2083/" rel="nofollow noreferrer">http://46.101.xxx.xxx:2083/</a> <em>- 100% working</em></p>
  
  <hr>
  
  <p>Through <strong>CloudFlare</strong>: </p>
  
  <p><a href="https://example.com/" rel="nofollow noreferrer">https://example.com/</a> <em>- 100% working</em></p>
  
  <p><a href="https://example.com:2053/api" rel="nofollow noreferrer">https://example.com:2053/api</a> <em>- 50% error from CloudFlare: 525 SSL</em> handshake failed</p>
  
  <p><a href="https://example.com:2083/" rel="nofollow noreferrer">https://example.com:2083/</a> <em>- 50% error from CloudFlare: 525 SSL handshake failed</em></p>
  
  <hr>
  
  <p>I configured my servers to use ports reserved for https connections:
  <a href="https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-Cloudflare-work-with-" rel="nofollow noreferrer">https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-Cloudflare-work-with-</a></p>
  
  <p>When I set up main server to use port :443 instead of :80 it obviously doesn't work since I don't have SSL on the server.</p>
  
  <p>How should be the <a href="https://example.com:2053/api" rel="nofollow noreferrer">https://example.com:2053/api</a> configured to work with CloudFlare?</p>