Pointing subdomain

I pointed my subdomain to my server but i get a 521 error but when i use a root domain it works just fine

Can you post a screenshot of your DNS page?

i removed the ip from the screenshot

without even knowing what the domain is nobody’s really going to be able to help

inferno.site

Okay and what’s the subdomain you’re having trouble with?

i.inferno.site

What does the DNS entry for i.inferno.site look like? Have you tried grey-clouding it to see if bypassing Cloudflare causes it to work?

1 Like

Its an A record with the host i.inferno.site that points to the ip address of my server

Do the inferno.site and the i.inferno.site DNS entries point to the same IP?

I see you unproxied the i.inferno.site DNS entry which revealed what the issue is, your server (at least the server that DNS entry is pointing to) is listening on port 80 (HTTP) but not listening on port 443 (HTTPS)

1 Like

Inferno.site and i.inferno.site are pointing to different ip addresses

Okay, you need to open port 443 on the i.inferno.site server and make sure it’s configured with a valid SSL certificate then it should work

1 Like

I have another domain currently pointing to the same ip and it was working so i wasnt sure why the subdomain wasnt working

and it doesnt work with port 443 I enabled the ssl in the Cloudflare dashboard

Now I see port 80 closed and port 443 open but it looks like the server is listening for HTTP on port 443 instead of HTTPS

the server should listen for HTTP on port 80 and HTTPS on port 443

HTTP on 443 isn’t going to work

yea i am changing something

image
i have it like this for my main domain and it is working but for my subdomain it is still giving the 521

Your main domain is hosted on this same server (with port 443 closed) with traffic proxied through Cloudflare? If so, you’re probably using an insecure SSL mode on your main domain, causing Cloudflare to connect to the server over HTTP instead of HTTPS.

But on this domain, Cloudflare is trying to connect to the server over HTTPS and that’s why it’s not working

Is something specific preventing you from enabling HTTPS on port 443 on this server?

2 Likes

I see you’ve enabled HTTPS on your server and https://i.inferno.site/ is loading properly now but http://i.inferno.site/ is not, it seems like you have Always Use HTTPS (under Edge Certificates) turned off for the domain. Turn that on and the Cloudflare proxy will automatically redirect http://i.inferno.site/ to https://i.inferno.site/

1 Like