Resolving a domain to subdomain on cloudflare

Hi there, I am stuck getting my domain to resolve to a subdomain. I am wondering if someone can help me with this issue.

I have a domain called ( I created a sub site under that domain called (
Under in the Cloudflare dns settings, I created a wildcard CNAME record. I have also created a subdomain record both pointing to my

Using Cloudflare, I then added another site ( to resolve to the subdomain. I deleted the A record and created a CNAME record. (CNAME is an alias of

I waited a period of time with no luck. I can access the subdomain using ( but does not resolve when accessing using (

I get a message with Error 520 web server is returning an unknown error.

Thank you for your help