Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to add custom domain for my web app using GCP App Engine

I have a domain, let say [mysideproject.com](http://mysideproject.com/). I bought the domain from ***GoDaddy*** but eventually started managing it on ***Cloudflare***. Used Github to deploy the static frontend landing page by adding the A and AAAA records in Cloudfare DNS entry.

Now, I developed another full stack app and deployed it using GCP App Engine. The app is up and running at [app.appspot.com](http://app.appspot.com/), I want to add a subdomain like [app.mysideproject.com](http://app.mysideproject.com/) that should point to my newly deployed app.


Steps that I did:

1. On App Engine, verified the ownership of [mysideproject.com](http://mysideproject.com/)

2. Added a subdomain [app.mysideproject.com](http://app.mysideproject.com/) ***.*** This gave a bunch of A, AAAA and CNAME records again.

3. Added the A and AAAA records but CANNOT add the CNAME to ***Cloudflare*** as it throws this error:


```
An A, AAAA, or CNAME record with that host already exists. For more details, refer to <https://developers.cloudflare.com/dns/manage-dns-records/troubleshooting/records-with-same-name/>. (Code: 81053)
```


So what I have in my DNS is:

1. A and AAAA records given by Github for mysideproject.com

2. A and AAAA record given by App Engine for app.mysideproject.com

Also, Google managed SSL certs are stuck and they are never renewed. It throws this error:


```
DNS records could not be found. Certificate activation will retry automatically.
```

My redirection to app.mysideproject.com fails because of "SSL handshake failed". Any idea what is going wrong? Any help here will be super appreciated.

2 1 175
1 REPLY 1

Hi, have you configured Cloudflare SSL to "Full" / "Full (strict)"? Also, make sure no conflicting A/AAAA/CNAME records for app.mysideproject.com. You should use a CNAME pointing to app.appspot.com