So far, this is what we have found out when choosing the origin host of our CDN (Fastly):
- myapp.appspot.com: Supports TLS but requires the Host HTTP header to be exactly "myapp.appspot.com". Therefore, the Host header needs to be overridden.
- ghs.googlehosted.com: Does not support TLS, but accepts any Host HTTP header, so you can use any of your App Engine custom domains.
@Ben, thanks for the answer! We will follow this approach, too, but we will need to send an extra header (for example, X-Host) in order to convey the actual site requested. Otherwise, the GAE app has no way of knowing what is the requested site since the Host header needs to be hardcoded to "
myapp.appspot.com". Our GAE app hosts several sites with slightly different content.
@George, not sure if I understand what you are saying. I believe your instructions are geared towards Compute Engine, where you need to configure the load balancer. AFAIK, GAE abstracts this from us, so we have no way of dealing with the load balancer.