Sub Domain Record

Hi I have made sub-domain pms.fayunited.com.sa and I want to change the name servers to another server 23.106.238.169 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

pms.fayunited.com.sa redirected you too many times.

ERR_TOO_MANY_REDIRECTS

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 pms.fayunited.com.sa to :grey:, are you able to access https://pms.fayunited.com.sa 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: https://pms.fayunited.com.sa/
    < Content-Length: 237
    < Content-Type: text/html; charset=iso-8859-1
    <
    { [237 bytes data]
  • Connection #0 to host 23.106.238.169 left intact
301 Moved Permanently

Moved Permanently

The document has moved here.

±--------±--------±---------±----------+
| FEATURE | DEFAULT | ZONE | PAGE RULE |
±--------±--------±---------±----------+
| 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.