Open douglasnaphas opened 2 years ago
I can route based on the Host header. The CloudFront Functions event's request
object has the headers. So I can have some-form.douglas-naphas.org route to a Google Form, and douglas-naphas.org route to a Google Site, using the same distro.
Before delegating DNS with the hosting provider, can I send, with CURL or fetch, a request to the distro (with its CloudFront domain name) where the HTTP Host header is the domain from a from-value?
I'd better consider the CloudFront Functions JavaScript runtime features.
For testing: https://daniel.haxx.se/blog/2018/04/05/curl-another-host.
From https://advancedweb.hu/how-to-use-cloudfront-functions-to-change-the-origin-request-path/