Https not working geeting error of 502

Hello support,

I have wildcard SSL certificate. My main domain is “”. I have created sub-domain( but wildcard SSL not point to my subdomain. My main website working with https but my subdoamin website not working with https. I need your help. Would you please help me


Can you recheck your SSL mode on Cloudflare Dashboard and if they are set up to Full mode, ensure that SSL are also installed on the staging subdomain origin server.

You can find more info about 502 errors in this Help Center article.


SSL for sub-domains is not supported in free plan AFAIK.

SSL is supported for first-level subdomains on the free plan

Cloudflare-issued SSL certificates cover the root-level domain (eg- and one level of subdomains (eg- * If you’re attempting to access a second level of subdomains (eg- through Cloudflare using the Cloudflare-issued certificate, a HTTP 403 error will be seen in the browser as these host names are not present on the certificate. If you need to have SSL working for these type of host names you would either need to purchase a Dedicated Certificate with Custom Hostnames through Cloudflare, purchase your own SSL cert and upload it to us as a Custom SSL Certificate or grey-cloud this DNS record so the traffic goes directly to your origin server.