1. 程式人生 > >Use CloudFront Web Distribution To Serve Content From Multiple Origins

Use CloudFront Web Distribution To Serve Content From Multiple Origins

Yes, you can configure a single CloudFront web distribution to serve different types of requests from multiple origins. For example, if you are building a website that serves static content from anAmazon Simple Storage Service (Amazon S3) bucket and dynamic content from a load balancer, you can serve both types of content from a CloudFront web distribution.

Follow these steps to configure a CloudFront web distribution to serve static content from an S3 bucket and dynamic content from a load balancer:

  1. Choose the Origins view.
  2. Create one origin for your S3 bucket, and another origin for your load balancer.
    Note:
    If you're using a custom origin server or an S3 website endpoint, you must enter the origin's domain name into the Origin Domain Name field.
  3. From your distribution, choose the Behaviors view.
  4. Create a behavior that specifies a path pattern to route all static content requests to the S3 bucket. For example, you can set the "images/*.jpg" path pattern to route all requests for ".jpg" files in the images directory to the S3 bucket.
  5. Edit the Default (*) path pattern behavior and set its Origin as your load balancer.

相關推薦

Use CloudFront Web Distribution To Serve Content From Multiple Origins

Yes, you can configure a single CloudFront web distribution to serve different types of requests from multiple origins. For example, if you are

Use CloudFront Geo Restriction To Restrict Access From Geographic Regions

You can use the geo restriction feature, also known as geoblocking, to prevent users in specific geographic locations from accessing content th

How to use VVDI BE key to download Points from VVDI MB tool?

BGA tokens Points VVDI BE key Every Xhorse MB key have 200 points Points can be download before you program key or after. 200 point

How to Serve Multiple Domains from an HTTPS CloudFront Distribution

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Use CloudFront to Serve a Static Website

Follow these steps to host a static website on Amazon S3 and to serve the website through Amazon CloudFront: 2. From the

Use CloudFront to serve HTTPS requests S3

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

[Nuxt] Use Vuex Actions to Delete Data from APIs in Nuxt and Vue.js

export begin async delet tin remove todo ras alt You‘ll begin to notice as you build out your actions in Vuex, many of them will look qui

Create a web app to show the age estimation from the detected human faces

Summary The IBM Model Asset Exchange (MAX) gives application developers without data science experience easy access to prebuilt machi

How to use Android Studio's SVG-to-VectorDrawable converter from the command line

Since the very beginning, one of the most annoying aspects of using VectorDrawables on Android has been the lack of a reliable SVG converter. Goog

Use WorkMail to Send Email From an On

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Migrate CloudFront Distribution to AWS Account

CloudFront doesn't support the migration of a distribution from one AWS account to another AWS account. CloudFront does support the

Amazon CloudFront Serving Outdated Content From Amazon S3

Invalidate the S3 objects You can invalidate an S3 object to remove it from the CloudFront distribution's cache. After the object is

The 30 Most Important Interview Questions TO ASK(shared from Glassdoor)

basic start door sea end plan rate about deep Exploring the Role Get beyond the basic job description and ask questions that probe deeper

java 讀取配置文件工具類 (how to read values from properties file in java)

讀取 public resource fault .get exce ram trac stat Java 讀取配置文件工具類 使用 java.util.Properties import java.io.IOException; import java.io.Inpu

vue報錯:Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.

顯示 sin ont img root png ima pan 如果 在.vue文件中引入了 element-ui 的 table 和 pagination 組件後,報錯:Component template should contain exactly one root

[POJ2762]Going from u to v or from v to u?

str for digi tchar har add size ins sta 題目大意: 判斷一個有向圖是否弱連通。 思路: Tarjan縮點。然後判斷原圖是否是一條鏈。 考慮鏈的特性:有且僅有一點入度為0,有且僅有一點出度為0。 因此縮點後直接判斷入度為

how to use seeta face engine to detect and recognize face

obb ref mcs oci vdc face gin engine http R啦2Z娜辟絲5卸JZ戮諳http://www.docin.com/app/user/userinfo?userid=179005792 3Z煙1VLBR1吐http://www.docin

eclipse中,項目有紅叉之-Cannot change version of project facet Dynamic Web Module to 3.1

comm common source eclips nbsp pda 修改 bsp png 1.打開Problems查看錯誤原因Window->Show View->Other->General->Problems 2.查看問題 3.發現是Can

Cannot change version of project facet Dynamic Web Module to 2.4問題解決

chan png code col res 版本 ces www. 目錄 問題現象: eclipse中,有個maven web項目,報錯:Cannot change version of project facet Dynamic Web Module to 2.4,截圖如

解決Cannot change version of project facet Dynamic web module to 2.5(轉)

spl eclipse java ldm 部分 條件 struts facet sun 我們用Eclipse創建Maven結構的web項目的時候選擇了Artifact Id為maven-artchetype-webapp,由於這個catalog比較老,用的servlet還是