Host header based on origin
The case is the following: - I have 2 s3 storages from different cloud providers they are both have the same content, first one is a primary, and the second one is a backup. - They have different domains, for example: s3.amazon.com and s3.gcore.com - I want to configure CDN resource in a way that if primary S3 storage starts responding with 5XX status code, then traffic automatically switches to secondary S3 storage. - And it's possible to implement it by marking primary storage as "Active" and secondary as "Use origin as backup" in the origin group configuration. - But there is a problem: it's impossible to configure the Host header so that it will match the current origin domain. It's only allowed to put customer header or forward host header from incoming request. None of these options is valid for the case I described above. It means that the current feature of "active" and "backup" origins is almost useless and we need the option to set Host header in requests to origin based on an origin domain name. Thank you!
Subscribe to post
Get notified by email when there are changes.