Paul Taylor
Paul Taylor

Reputation: 13190

Can I configure Cloudfront so its split traffic to two origins

Can I configure Cloudfront so its split traffic to two origins so that the incoming url looks like its all going to one server, but then depending on path go to EB for some requests and S3 for others (dynamic versus static).

Even if I can do this is it a good idea, or should it be obvious from the original request url that the static and dynamic pages are hosted from different location.

Upvotes: 0

Views: 1522

Answers (1)

Michael - sqlbot
Michael - sqlbot

Reputation: 178956

Yes, you can... and if you want to use CloudFront for all of the content, there's no reason that comes to mind why you wouldn't use a single distribution.

As long as you can sensibly specify which path patterns go to which origin, it's pretty straightforward to configure.

http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern

Upvotes: 2

Related Questions