0
votes

I followed Custom Domains With SSL and have all the DNS settings in place. The console at App Engine Project Settings shows Google-managed, auto-renewing under SSL Security. I waited for 24 hours and Google managed certificates seem to be in place. However, when I access

mydomain.com or www.mydomain.com (with or without HTTPS)

it shows 404 error (The requested URL was not found on this server.)

Going back to my original DNS mappings with root and CNAME entries, the domain works but I would like it to run on HTTPS. Please advise.

1
Do you see any related log entries in your app's stackdriver logs? console.cloud.google.com/logs/viewer?project=Proj_idDan Cornilescu
Yes I do see 4 entries roughly around the time when I created domain mapping following the tutorial. They look like 2018-01-21 18:32:47.165 PST App Engine CreateDomainMapping mydomain.com myemail.deepSymmetry
Sorry, I should have specified - I mean related to the 404 errors.Dan Cornilescu
No 404 related errors. Just 4 records with CreateDomainMapping for mydomain.com and www.domain.com.deepSymmetry
Can you confirm if you are using App Engine or Google Cloud Storage to host your website? I mean, is it a static website hosted using this tutorial or is it indeed an App Engine application? I mean it because of the c.storage.googleapis.com CNAME record you mentioned, which points to a bucket in Cloud Storage.dsesto

1 Answers

0
votes

The steps you reproduced are appropriate when trying to set up HTTPS connections for App Engine, but in fact you have a static website being hosted in Cloud Storage, as detailed in this documentation tutorial.

As noted there, in order to learn how to serve content using HTTPS, you will have to refer to this other page. In short, these are the options you have available:

  • Using the direct public URI for your website, as in https://storage.googleapis.com/<YOUR_BUCKET>/<YOUR_WEBSITE>. It is served using HTTPS by default.
  • Cloud Storage does not currently support HTTPS serving when using a CNAME (which is the case if your custom domain is pointing to the website hosted in your bucket). In that case, you have three options:
    • Set up a Load Balancer, following this guide.
    • Use CDN Interconnect (details here) to serve your Cloud Storage content through a third-party Content Delivery Network.
    • Serve your website from Firebase Hosting, as detailed in this Firebase getting started guide. This is the option I see you finally chose, as per the comments you posted on your original question.