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

learn more… | top users | synonyms (1)

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 ...
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 ...
0
votes
0answers
20 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 ...
1
vote
1answer
32 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 ...
0
votes
0answers
22 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
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
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 ...
0
votes
1answer
55 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
324 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 ...
0
votes
0answers
55 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
40 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 ...
3
votes
1answer
162 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
122 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
44 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 ...
0
votes
2answers
100 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
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
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 ...
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 ...
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
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
212 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....
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
71 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
61 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 /...
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
684 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
431 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 ...
2
votes
1answer
374 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
188 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> ...
5
votes
1answer
411 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
1answer
401 views

CloudFront SSL issue

We have a wildcard certificate that works for several cloudfront hosts we use at work here (all or mostly all tied to an S3 bucket) but when accessing using SSL, my browser yields an NET::...
0
votes
2answers
907 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/...
0
votes
0answers
185 views

Rewrite rule with nginx returns a 301 to Cloudfront

I am trying to figure out why this rewrite rule returns a 301 to Cloudfront instead of returning the image. server { [...] rewrite ^/images/filter/(.*)$ /filter.php?url=$1 last; [...] } ...
5
votes
0answers
243 views

What's the best way to simulate being behind China's Great Firewall? [closed]

We're having issues with an iOS app of ours that uses in-app purchase to unlock downloadable content - but it seems only from China. We see many negative reviews from China for this reason. Our in ...
0
votes
1answer
55 views

Cloudfront: Pulling content from subdomain - serving it on main domain

I'm setting up CloudFront (CF) using third party hosting as the origin. What I want is to have the CF servers act as my own hosting, meaning I don't want to fetch files from the likes of cdn.domain....
0
votes
1answer
202 views

Wordpress with cloudfront , how to mask origin url

I'm facing an issue setting up wordpress with cloudfront. I've set up all things fine, and it's working, but the problem is that when I send a request, the origin url is displayed in the address bar ...
0
votes
1answer
29 views

[AWS]Get clouffront redirecting to the right apache vhost instead of default one

I have set a cloudfront distribution with an orgin which is a vhost on apache. When I select "None (Improve Caching)" in the Forward Hearder option, the cname of the cloudfront distribution sends me ...
0
votes
1answer
44 views

How to stop s3 from listing some of the content?

It is an example. What setting of S3 causes the s3 server to a listing of bucket content? EDIT: I have followed Céline Aussourd's answer and turned off the list of the s3 bucket. But ...
1
vote
0answers
468 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
1answer
265 views

Origin access identity and S3 permission

From http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html , I have already created an OAI, as shown in this screenshot Am I supposed to grant the permission to ...
0
votes
1answer
587 views

Misses in cloudfront CDN

I am a bit new to the world of CDN's. I am also running an internationa site, which we hope will one day have a lot of traffic, but for now trickles in. Site uses a image resizer behind a CDN to serve ...