How can I make Cloudfront distribution that have a shopify mall as a HttpOrigin?

Hello,

I have some shopify shop.

  • xxx.myshopify.com- have a alias domain great.com

and I also have my commercial homepage, assume that the homepage has an url:

  • yyy.s3.amazon.com
  • Here is what i want:

assume that there is a Cloudfront distribution that have a domain like: awesome.com,

i want a URL segment works like followings:

  • [https://awesome.com/shop](https://awesome.com/shop)xxx.myshopify.com

  • [https://awesome.com](https://awesome.com)yyy.s3.amazon.com

but i found there is a problem, every time i trying to connect [https://awesome.com/shop](https://awesome.com/shop) it always redirects me to the alias domain to the shopify - [https://great.com](https://great.com)

i also have tried with CURL in terminal, it just gave me result like followings:

* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 301
< date: Fri, 26 May 2023 07:22:12 GMT
< content-type: text/html; charset=utf-8
< location: https://great.com
< x-sorting-hat-podid: 289
< x-sorting-hat-shopid: ********
< x-storefront-renderer-rendered: 1
< x-redirect-reason: primary_domain_redirection
< x-frame-options: DENY

is there some document for this situation? or is there solution for this situation?

thank you in advance.

1 Like