[英]How to configure AWS CloudFront with s3 and Lightsail Origin
我正在嘗試建立一個滿足以下所有 3 個條件的網站。
1."https://example.com/" → Refer to s3 bucket "aaa"
2."https://example.com/service" → Refer to s3 bucket "aaa" /service directory
3."https://example.com/magazine" → Refer to the Lightsail Wordpress page
現在域“example.com”與 Route53 上的 CloudFront“bbb.cloudfront.net”相關聯。 我將這個 CloudFront 的來源設置為 s3 存儲桶“aaa”,行為設置是默認引用這個 s3 存儲桶。 這樣,可以容易地滿足條件1和2。
但是有沒有辦法配置條件3?
是否可以為“bbb.cloudfront.net”設置行為以引用 Lightsail IP 地址? 我找到了一些使用子域實現此目的的方法,例如讓https://ccc.example.com/引用 Lightsail IP 地址,但子域不是我想要的。
我不確定這種結構(CloudFront + s3 + Lightsail)本身是否有問題或者是否有辦法。 如果你有任何通知,誰能給我一些建議?
非常感謝JBS !
這個問題已經解決,我在下面描述了我所做的。
結構圖:帶有 Cloudfront 的 aws lightsail
這個線程也很有用: 任何方式來設置 AWS Cloudfront 指向 static IP 地址(WP 托管在 GoDaddy 上)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.