I am struggling with the problem now for a couple of days. I hope someone can point out where I made the mistake.
I have a domain mydomain.com
. (not purchased with Google.)
I have one AppEngine Standard Service (default
) with my website.
Then I have 30 additional AppEngine Standard Services for my different api's (service1-service30
).
When I browse to
mydomain.com
orwww.mydomain.com
I should be redirected to the"default" service
.When I browse to e.g.,
service25.mydomain.com
I wanted to be redirected to the corresponding service. In this exampleservice "service25"
What I did:
Dispatch.yaml:
dispatch:
- url: "mydomain.com/*"
service: default
- url: "www.mydomain.com/*"
service: default
Calling mydomain.com
and www.mydomain.com
are working as expected with an valid SSL certificate.
- Calling
service25.mydomain.com
redirects to the"default" service
- Calling
service26.mydomain.com
returnsERR_CONNECTION_CLOSED
- Calling
service27.mydomain.com
returnsDNS_PROBE_FINISHED_NXDOMAIN
Regarding Mapping Custom Domains and How Requests are Routed at least one of my previous methods should work and the default mapping/routing to the corresponding service name should be done.
If I add
- url: "service25.mydomain.com/*"
service: service25
it works, but due to the limitation of max 20 routes
in the Dispatch.yaml file this is not working for me.
What did I do wrong?
Thank you very much in advance.