Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

learn more… | top users | synonyms (1)

3
votes
2answers
3k views

Amazon Cloudfront with S3 Redirect

I'm trying to do something that should be relatively straight-forward - I want to setup a few domains and subdomains to redirect to the core domain for our site, but I want to put the redirects out on ...
4
votes
2answers
2k views

How to restrict access just to cloudfront from a custom origin server?

if i understood well, in order to create a custom origin distribution, I need to make public those files on my custom origin server. In my case, that will be put those files into a public dir of an ...
0
votes
0answers
9 views

Access denied for sub-paths on CloudFront

I have a distribution on Cloudfront that use a S3 bucket. The first page works but not he sub-paths. For example, when I go to 'www.example.com' it works but not 'www.example.com/admin'. I always ...
3
votes
2answers
3k views

CloudFront with Custom Origin and ELB

We are using CloudFront for our static assets but also wanted to allow for Gzip. We set up a new distribution with a custom origin pointing back to our application servers which are behind a elastic ...
1
vote
1answer
84 views

CloudFront CDN breaks due to DirectorySlash behavior of Apache

My CDN domain is set to www.mysite.com, and it reads from origin.mysite.com. mod_dir is enabled on apache, and so any request without a trailing slash is redirected with a 301 to the equivalent URL ...
0
votes
0answers
19 views

S3/Cloudfront CORS working on some files only

I'm really struggling to get Cloudfront and S3 to add Access-Control-Allow-Origin: * to the headers of video files stored on S3 (for inline video on iPhones - seems to be working everywhere else ...
0
votes
1answer
54 views

Amazon route 53 + cloudfront + s3 -> with angularjs2 app in ec2

I am really confused about the setup I need for my angularjs2 app. It's simply a SPA application with html5 mode urls and all I want is: requests to www.mydomain.com/blabla... will be redirected ...
0
votes
1answer
18 views

openssl tool cannot get certificate from CloudFront, does anyone know why?

Im writing a script to check the SSL expiry dates of all my domains. This works for my normal sites: echo | openssl s_client -connect $domain:443 2> /dev/null | openssl x509 -noout -enddate ...
1
vote
1answer
28 views

AWS CloudFront Default Root Object and subdirectories

I'm hosting a Jekyll blog on S3 and CloudFront. Setting the default document on S3 works fine and all sub folders natively go to index.html. On my CloudFront distribution, I have set the Default Root ...
0
votes
3answers
65 views

Should I use a single SSL certificate for example.com and www.example.com?

I have a website (hosted by Amazon S3) which redirects example.com to www.example.com. I am setting up an Amazon CloudFront distribution for this website, and would like the same redirection to work ...
3
votes
2answers
3k views

CloudFront S3 Access denied

I have one account with privilege to manage S3 (S3_User), and another one to manage Cloud Front (Cloud_Front_User). Now, I've created a bucket "bucketname" with S3_User and a distribution with ...
0
votes
1answer
49 views

EC2 with AWS CloudFront?

IN SHORT How do I connect to the nearest EC2 instances using CloudFront to achive geolocation based Content Distribution? I want to do a geo-location based content distribution, so that the end user ...
0
votes
0answers
21 views

CloudFront Object Caching: “Use Origin Cache Headers” vs “Customize”

When creating a CloudFront Distribution, I can choose "Object Caching" - either "Use Origin Cache Headers" or "Customize". "Customize" allows me to set Minimum, Maximum and Default TTL values. Does "...
0
votes
0answers
25 views

Does CloudFront support S3 signature version 4 for KMS encrypted objects?

I'm using Cloudfront with an S3 origin that is using KMS to encrypt objects. I'm getting the following error when sending a GET request for an object in the S3 bucket. Requests specifying Server ...
18
votes
2answers
16k views

Amazon Cloudfront with S3. Access Denied

We're trying to distribute out S3 buckets via Cloudfront but for some reason the only response is an AccessDenied XML document like the following: <Error> <Code>AccessDenied</Code&...
0
votes
1answer
52 views

Passing User-Agent through Cloudfront for Facebook scraper

This question is borderline stackoverflow/serverfault, so don't hold it against me that it's here please :) I have a service hosted on AWS, nginx with node.js behind it. I have a cloudfront ...
1
vote
1answer
26 views

Cloudfront is extremely slow, auto compression is already enabled

I have cloudfront sourcing from s3 bucket. However, the load speed is many times slower than s3 The example url is here. It's merely 500KB but taking over 40 seconds to load. I already have Compress ...
1
vote
1answer
312 views

CloudFront wasn't able to connect to the origin.

I'm trying to set up an A record that points to my cloudfront url. When I do that, I get the following error when I access my cloudfront url: "CloudFront wasn't able to connect to the origin." does ...
0
votes
0answers
43 views

Reverse Proxy on cloudfront

I have an angular site / web application (Lets call this www.mysite.com) hosted on Amazon S3 as a static website. This s3 bucket serves as the origin for a cloudfront distribution and it works ...
3
votes
1answer
39 views

Amazon CloudFront CORS specific delay

I am experiencing a delay between the serving of CORS requests but direct requests are served fine. I am using this to distribute media streams via HTTP so it is very important to reduce the startup ...
0
votes
0answers
54 views

Can AWS support RTMP based Live Streaming with CloudFront or CloudFormation

As far as i understand reading all these articles: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-rtmp.html docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/...
3
votes
1answer
154 views

Cache-Control not working in AWS S3 object Metadata

Follow-up to my original question: No Cache-Control Header for files from AWS CloudFront with S3 Origin Im serving up static files using AWS CloudFront with AWS S3 as the origin. I tried to set the ...
1
vote
1answer
110 views

No Cache-Control Header for files from AWS CloudFront with S3 Origin

We just migrated to Amazon AWS. We currently have an EC2 instance that's working well. It's running Nginx in front and Apache in the back-end. That's running well also. All sites are launched properly ...
0
votes
1answer
42 views

How to edit response header of Amazon s3

http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html According to the above doc, for cloud-front to gzip compress files it receives from origin, the response ...
1
vote
0answers
467 views

AWS cloudfront with SNI + ELB with 443 to 80 redirection to EC2 issue

I have configured web server front ending with AWS ELB and CloudFront. I have deployed SSL certificate on load balancer (ELB) for HTTPS connection. We have set up 2 listener protocols: Source -> 80 ...
0
votes
2answers
98 views

Blue/Green deployments with CloudFront with equal proportion

Two CloudFront Distributions : The option I attempted was to have two separate CloudFront Web Distributions, one for a static site in s3 bucket (A version) and other for another static site in s3 ...
0
votes
2answers
30 views

Cloudfront origin direct requests to a parent path

I'm trying to set up mydomain.com/help that should pull content from mydomainhelp.otherdomain.com I was told to use a apache mod_proxy, but I'm not a big fan of that approach. I was wondering if I ...
5
votes
1answer
409 views

Blue/Green deployments with CloudFront

I'm looking for a way to do Blue/Green deployments with CloudFront. Does anyone have a good solution for moving from one CloudFront distribution to another or does everyone really just create their ...
0
votes
0answers
60 views

How can I get a preflight OPTIONS request to work with CloudFront and Signed Cookies?

I have an AWS CloudFront behavior that is configured to allow OPTIONS requests so I can enable cookies to be sent in cross domain ajax requests. My browser (Chrome) requires the OPTIONS preflight ...
0
votes
2answers
4k views

Cloudfront - Failed to contact the origin

m.giftsdirect.com has a CNAME record for our CloudFront distribution. We are getting 503 errors, "Failed to contact the origin." on all of our product urls. E.g. https://m.giftsdirect.com/catalog/...
0
votes
1answer
26 views

How do I route Cloudfront with multiple origins?

So I have 2 Wordpress sites hosted as such http://siteA.mydomain.com http://siteB.mydomain.com I have a distribution created that has the 2 domains above as the origin. siteA.mydomain.com ...
0
votes
1answer
38 views

Stop CloudFront from serving whole website

I've followed a guide to set up CloudFront to use as a CDN on my Wordpress website. It was done using this guide. Everything that WP Super Cache specifies is served by CloudFront however if a user ...
0
votes
0answers
25 views

How to make amazon s3 files fast from anywhere in the planet?

I'm working on a project with user created content, users basically upload long mp3 files to the server which can then be played by other users. Recently users not from europe reported slow "seek ...
1
vote
0answers
205 views

Access-Control-Allow-Origin header missing from a response

I'm trying to debug an issue. On one of my sites, the font files are not loading correctly. Someone has reported this error in the inspector log: Font from origin 'http://d1h0r2f9g9fk4d.cloudfront....
0
votes
2answers
901 views

Getting cloudfront logs into logstash: ERROR: is not a legal argument to this wrapper, cause it doesn't respond to “read”

Logstash version 1.5.0.1 I am trying to use the logstash s3 input plugin to download cloudfront logs and the cloudfront codec plugin to filter the stream. I installed the cloudfront codec with bin/...
2
votes
2answers
45 views

AWS CloudFront Limit Origin Access

I am averaging 12,000 page views per day, but my cloudfront is getting around 6 million requests for images and fonts every day. I suppose it is possible that all of these requests are coming from my ...
0
votes
0answers
70 views

Cloudwatch metrics for Cloudfront real time (or close as possible)

I've got a large amount of video/audio files on S3 buckets that are published via CloudFront with protected URLs, everything is working fine, restrictions and accesses time out and are all OK. The ...
0
votes
1answer
60 views

understanding CloudFront log file

I'm setting up a processing pipeline for CloudFront log files. Reading the documentation, my understanding is that CF will create one log file per hour per distribution, but that's not what I'm ...
0
votes
1answer
22 views

Is possible to change path to server certificate in AWS IAM

I have a problem to use my server certificate in CloudFront of AWS. When I added my server certificate I didn't know that if I'm going to use it in the CloudFront, I needed to add the param --path /...
0
votes
2answers
633 views

Chrome not caching CloudFront video/audio; CloudFront delivers http 1.0 headers

With the following response header: HTTP/1.0 200 OK Content-Type: video/mp4 Content-Length: 3294545 Connection: keep-alive Date: Thu, 30 May 2013 21:17:34 GMT x-amz-meta-s3cmd-attrs: uid:501/gname:...
1
vote
1answer
120 views

Route 53 configuration for Cloudfront distribution linked to S3 bucket for naked domain

I am using route 53 for a domain (example.com) linked to my app on Heroku. To handle naked domain redirection, I am using a S3 bucket as explained here: https://aws.amazon.com/blogs/aws/root-domain-...
0
votes
1answer
671 views

Can I use CloudFront to serve a WordPress blog from the same domain, but a different server?

We have a website that we serve from Elastic Beanstalk (AWS), and it all works great. We use the built-in load balancer to serve our site over HTTPS, etc. Our database is separated through the RDS ...
1
vote
1answer
430 views

How to set up AWS Cloudfront for dynamic number of domains for a dynamic site?

THE SETUP We have a webs/wix/etc-like website management system we are trying to use with CloudFront. It has the following domains and subdomains. - ourdomain: our main website - admin.ourdomain: ...
0
votes
0answers
71 views

How Do I Mask the CDN Domain with My Own Domain Name?

So i've been trying out cloudfront from AWS. Why is the URL 'example.com' resolving to 'example.com.s3.eu-west-1.amazonaws.com' in the Address Bar? I've tried googling loads of questions with this ...
1
vote
1answer
251 views

AWS - Map URL to API Backend (Apache ProxyPass Like)

I have a web architecture using Apache as front-end and Nodejs as back-end. I want to migrate this architecture to AWS. Node.js is going to be an Elastic Beanstalk and Apache will be stored on Amazon ...
1
vote
1answer
783 views

How to configure Cloudfront's 'Cache Behavior->Path Pattern' to include query parameters?

I've setup a cloudfront distribution that contains two S3 origins. I want to setup a cache behavior policy such that the query parameter determines which bucket the resource is fetched from. So far I'...
2
votes
1answer
371 views

CloudFront Distribution for Origins in Multiple Regions

Is there a way to point CloudFront to different origin servers based on location? We currently use Route53 latency-based routing to direct traffic to east or west region elastic load balancers. ...
0
votes
0answers
36 views

CloudFront alias for https site

Our website is completely configured on SSL and all links of images and others are coming via https://www.example.com/.. This is one of the requirement of site Now, if I need to setup the CloudFront ...
1
vote
0answers
187 views

CloudFront + S3 Access Denied Using Signed Cookies

I'm trying to integrate signed cookies for a CloudFront distribution that's fed off of an S3 bucket but getting access denied error messages: <Error> <Code>AccessDenied</Code> ...
1
vote
2answers
609 views

AWS cloudfront - why my assets appear twice in page speed tests?

Here is an example: http://tools.pingdom.com/fpt/#!/cp0wwy/http://www.shearcomfort.com/Car-Seat-Covers_CDN.asp Pick any image, say 2014_subaru_outback_mini.jpg then you can see it appears twice: once ...