I set up a custom domain with App Engine after following the instructions on DNS records:
https://cloud.google.com/appengine/docs/standard/java/mapping-custom-domains
It's working for the default service using URL http://MY_CUSTOM_DOMAIN but I'm unable to access other services with URLs http://SERVICE_ID.MY_CUSTOM_DOMAIN. Do I need to map a different set of DNS records?
In the Google Cloud console, go to the Custom Domains tab of the App Engine Settings page. Click Add a custom domain. If your domain is already verified, the domain appears in the Select the domain you want to use section. Select the domain from the drop-down menu and click Continue.
What DNS record type is set when mapping a Custom Domain to be an alias for the default {sitename}. azurewebsites.net domain name assigned to a Web App by Azure? Correct Answer! Show Answer!
Here's a step-by-step:
subdomain.example.com
you need to own example.com
) If not, ask a friend to add you as an owner.ghs.googlehosted.com
(in Cloud DNS or wherever). Note: This will cause downtime, but it is required for App Engine to create an SSL certificate so downtime is unavoidable...App Engine -> Settings -> Custom Domains
Add a custom domain
Continue
subdomain.example.com
) and click Save mappings
Done
(you already did this last step)gcloud app describe --project <GOOGLE_CLOUD_PROJECT_ID>
and take a look at the current section of dispatchRules
dispatch.yaml
or dispatch.yml
file with your new rule as well as the ones already existing above (note the file format is different from the command output)dispatch: - url: <DOMAIN>/* # e.g. subdomain.example.com/* service: <SERVICE-NAME>
gcloud app deploy dispatch.yaml --project <GOOGLE_CLOUD_PROJECT_ID>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With