amazon-cloudfront

AWS - cannot access S3 bucket via HTTPS endpoint due to location constraint

一个人想着一个人 提交于 2019-12-24 10:49:06
问题 The following services are activated: a S3 bucket in ap-east-1 where my static web pages are saved, a domain name registered on Route 53 , a SSL certificate requested via Certification Manager at us-east-1 , a CloudFront distribution for enabling HTTPS access to my web pages. It is stated in this page that a single SSL certificate should suffice if CloudFront is used. When I navigate to my URL https://www.example.com in Chrome, the following error is returned. How to make my pages globally

Cloudfront Missing Key-Pair-Id Cookie Value with Cookies Present

别说谁变了你拦得住时间么 提交于 2019-12-24 08:48:46
问题 I'm trying to debug an error with my Cloudfront setup signed cookies setup, where despite setting the correct three signed cookies to be able to access the private content (CloudFront-Key-Pair, CloudFront-Policy, CloudFront-Signature) and I'm curious what information needs to be carried over into the GET request for the CloudFront distribution file in order to verify these cookies. What I can currently understand about the situation is the following. Error Message: <Error> <Code>MissingKey<

Cloudfront CORS blocking fonts

倾然丶 夕夏残阳落幕 提交于 2019-12-24 08:47:54
问题 All the assets except for the fonts load nicely, and whenever I go to my site I keep getting messages like this one: Access to Font at 'https://xxxxxxxxxx.cloudfront.net/assets/fontawesome-webfont.woff2' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com' is therefore not allowed access. As you can see CURL command indicates that no headers are present. curl -H "Origin:

Google Docs preview does not show S3 Signed URL

被刻印的时光 ゝ 提交于 2019-12-24 08:25:53
问题 I have embedded Google Docs preview in my Rails application. While using AWS S3 signed URL, it does not generate preview. How can I solve this problem? Example <iframe src="http://docs.google.com/gview?embedded=true&url=https://d2qvdh0r9424ok.cloudfront.net/mallow-tech/attachments/1/original/logo-page.png?1473416934&Expires=1473738491&Signature=CsFJAs6jg8pqDSMy3YTinV7a8ffYoRUpc~0D-cEgw-hXWQ96fV7VYUz3uDmDmf7O2MeGEFnVt2aiwPgcsqEA8Up~azeCoBUUraKVr~fPLrl

How to enable dynamic bit rate switching in Amazon S3 Cloudfront?

浪尽此生 提交于 2019-12-24 08:24:26
问题 I am using JWPlayer with RTMP streaming for a video with several bitrate quality levels. In the JWPlayer configuration you specify the qualities like this : 'levels': [ { bitrate:"2920", width:"1920", file:"videos/sintel-1920.mp4" }, { bitrate:"2080", width:"1280", file:"videos/sintel-1280.mp4" }, { bitrate:"2080", width:"720", file:"videos/sintel-720.mp4" }, { bitrate:"650", width:"480", file:"videos/sintel-480.mp4" }, { bitrate:"420", width:"320", file:"videos/sintel-320.mp4" } ] I thought

Weighted round robin dns between 2 Cloudfront distributions

故事扮演 提交于 2019-12-24 04:22:40
问题 We are trying to use aws to do some a gradual deployment test with our javascript code, but it seems to fail us we created 2 S3 buckets with CF distributions : a.example.net -> aaa.cloudfront.net b.example.net -> bbb.cloudfront.net than we created a weighted round robin DNS entry in route53 test.example.net -> (cname) -> aaa.cloudfront.net (5) test.example.net -> (cname) -> bbb.cloudfront.net (95) in the S3 bucket we put a file with the CF corresponding domain name for each bucket : http:/

How to get clean URLs on AWS Cloudfront (S3)?

时光怂恿深爱的人放手 提交于 2019-12-24 03:30:01
问题 I'm hosting my static website on AWS S3, with Cloudfront as a CDN, and I'm wondering how I can get clean URLs working. I currently have to go to example.com/about.html to get the about page. I'd prefer example.com/about as well as across all my other pages. Also, I kind of have to do this because my canonical URLs have been set with meta tags and search engines, and it's gonna be a bit much to go changing them. Is there a setting in Cloudfront that I'm non seeing? Updates There are two

Different SSL-certificates for different parts of site

我的梦境 提交于 2019-12-24 01:39:18
问题 I have a site on example.com that loads all its static components from s.example.com (an amazon cloudfront distribution). Now i would like to make some pages of example.com to use https so i thought i'd buy a ssl certificate for example.com, but since the pages loads images and other stuff from s.example.com the https will break since some components are not encrypted. Is it possible to buy a second certificate for s.example.com? The reason i ask is because it's very much cheaper to buy two

CORS with Amazon S3 and Cloudfront

不羁的心 提交于 2019-12-24 01:01:34
问题 I have a Rails App hosted on Heroku which is using CloudFront with assets hosted on S3. It displays assets prefectly(although it took some wrestling). My setup for Cloudfront: Forward Headers: Whitelist Whitelist Headers: Origin Forward Query Strings: No CORS setup for the S3 bucket: <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>HEAD<

SSL offloading on AWS Cloudfront level

懵懂的女人 提交于 2019-12-24 00:24:04
问题 We use the following AWS infrastructure: Route53-> CloundFront -> Elasticbeanstalk(+LoadBalancer=ELB) -> EC2 instances Now we have ssl certificates set up on CloudFront level and the same one on ELB level thus providing us end-to-end encryption between CF and ELB. End2End between AWS CF and origin is described as best practice here. This refers to Full SSL(strict) on this picture(this is for CloudFlare stack but it is for better illustration so never mind). We want to offload SSL on AWS CF