dispatch.yaml troubleshooting

59 views
Skip to first unread message

Mike Hardy

unread,
Nov 16, 2017, 11:38:16 AM11/16/17
to Google App Engine
Hi, I am trying add www to our frontend service so that we can have both `www.somedomain.com` and `somedomain.com` work with the frontend service.

This is our dispatch.yaml
dispatch:
  - url: "*somedomain.com/*"
    service: frontend

I've used GAE settings to set a custom url and added the cname record to our DNS but we continue to get a server not available error. What could I be doing wrong?

Thanks!
Mike

Kenworth (Google Cloud Platform)

unread,
Nov 16, 2017, 5:50:37 PM11/16/17
to Google App Engine
I was able to reproduce your issue. As such, here are my takeaways:

1- Make sure you added the CNAME for "www.somedomain.com"
2- The use of the following element without the asterisk (*) should be fine:


3- Alternatively, you can add both routing rules as follows:

dispatch:
 
- url: "www.somedomain.com/*"
    service
: frontend
   
 
- url: "somedomain.com/*"
    service
: frontend

Mike Hardy

unread,
Nov 16, 2017, 11:56:13 PM11/16/17
to Google App Engine
Thanks Kenworth - your dispatch.yaml file solved the problem :)
Reply all
Reply to author
Forward
0 new messages