Sub Domain Record

Hi I have made sub-domain and I want to change the name servers to another server adde a A DNS record in Cloudflare but got this error

Error:Cant create TCP Link Tolocalhost

some times getting another error :

This page isn’t working redirected you too many times.


I think you are getting the terminology mixed up. Are you trying to delegate that subdomain, or just point to a new origin web server?

This error is usually the result of a mismatch in the SSL Mode in your Cloudflare account and the setup on your Origin server.

If you set the DNS A record for to :grey:, are you able to access without error?

What is the SSL Mode on your account? This is visible on the TLS/SSL tab on the Cloudflare dashboard.

For the other hostnames on your domain,(I think using Hostinger), do you have a valid SSL certificate on the origin?

1 Like

There is an http/s redirect on the origin server that hosts the subdomain.

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 301 Moved Permanently
    < Date: Mon, 03 Apr 2023 14:38:56 GMT
    < Server: Apache
    < Location:
    < Content-Length: 237
    < Content-Type: text/html; charset=iso-8859-1
    { [237 bytes data]
  • Connection #0 to host left intact
301 Moved Permanently

Moved Permanently

The document has moved here.

| SSL | Full | Flexible | |

When flexible ssl is used we make an http connection over port 80 at the origin, so if there is an https redirect it causes an endless loop.

Please remove this redirect and only use Cloudflare’s always use https feature.

Always Use HTTPS · Cloudflare SSL/TLS docs

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.