You have some Elastic Beanstalk/Load Balancer that you want to attach multiple domains to. You want to use Route 53 to point to a CloudFront Distrobution, which will point at the ELB/EBS.
- Go to
Cloudfront - Create a new distro
- BE SURE TO FORWARD ALL HEADERS/COOKIES/QUERY STRINGS/EVERYTHING POSSIBLE TO ORIGIN
- Set the CNames/SSL as needed
Once the distro is created,
-
Run
nslookup <cloudfront url>to get the IP address of the cloudfront server -
edit your
/etc/hostsfile and add<ip address of cloudfront> <domain you are trying to set up>- For instance, if you wanted to test
abc.comand Cloudfront's IP is1.2.3.4, you would add the following line to/etc/hosts:
1.2.3.4 abc.com - For instance, if you wanted to test
-
Now in your browser/using cURL, make a request to
abc.com. You should see the origin server responding to your requests.