0

I have a domain (myweb.com) pointed to one of my cloudfront distributions eg.:

myweb.com -> https://web1.s3.amazonaws.com/

now based on the internal organisation IP, I would like to load a new version of the site under the same domain not a subdomain:

myweb.com -> https://web2.s3.amazonaws.com/

soo if someone from outside of the company access myweb.com will get WEB1, within the organisation myweb.com will show WEB1

Is this possible?

Ben
  • 101
  • 1
  • Off the top of my head, I would probably look at something like having two different S3 buckets, using CloudFront to direct users to the correct bucket. I would have to give it more thought to work out if that was possible and how to do it. Another way to do it might be something to do with DNS, your internal corporate DNS returning a different CNAME / IP that points at a different bucket / origin. These are just ideas, rather than solutions, if you can't work it out and no-one else knows I could think some more. – Tim Jan 19 '23 at 07:33

0 Answers0