Questions tagged [amazon-cloudfront]

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

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

Official page

398 questions
7
votes
1 answer

Does using CloudFront just to enable https make sense?

If I have an EC2 instance, running a web app (HTTP), and I have an Amazon-provided SSL certificate, I can use CloudFront to make the EC2 instance accessible via HTTPS, handling the certificate automatically. Is this a legitimate use of CloudFront,…
mitchus
  • 213
  • 1
  • 7
6
votes
1 answer

How to map subdomain in CloudFront to the same name in S3?

I have been searching for a way to do the following if someone can enlighten me would be greatly appreciated. e.g. would the following mappings be possible in a single CloudFront instance? feature-a.domain.com =>…
6
votes
1 answer

Should I use CloudFront in front of API/Web just because I want them on a single domain?

I typically develop my applications with frontend single page application on S3 and backend APIs on a server typically elastic beanstalk (so ELB + EC2). I am confused over what is a good choice to put in front of my ELB & S3 - mainly CloudFront or…
6
votes
1 answer

Send custom Host header with CloudFront

I have an ELB that I want to put behind CloudFront. Let's say the ELB is example.us-east-1.elb.amazonaws.com. It only accepts requests with the Host header set to www.example.com, which I now want to host with CloudFront. Is it possible to tell…
Carl
  • 163
  • 1
  • 1
  • 4
6
votes
1 answer

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 however inline video is only working on iPhones from…
beek
  • 225
  • 1
  • 10
6
votes
1 answer

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 Object to index.html, but sub directories do not…
6
votes
1 answer

I get a 403 when requesting a JS file from CloudFront

This is new to me so please excuse me if I have no idea what I'm talking about (: I'm trying to set up my own CDN with CloudFront and S3 through a subdomain by adding a CNAME to that subdomain to point to the CloudFront. It seems like I get a 403…
Roland
  • 163
  • 1
  • 1
  • 5
6
votes
1 answer

AWS: How to redirect many domains to a page on another domain?

My objective I have a number of domains (e.g. 10 or 20) and I would like to redirect any visitors to anywhere on those pages to one page on another domain (for example my stackoverflow.com profile page). This includes apex domain using http (e.g.…
6
votes
2 answers

Prevent Cloudfront from forwarding part of path to origin server

Background: I have an S3 Bucket ( Origin 1) that serves a static website under a the domain example.com using Cloudfront. Goal: Additionaly i want example.com/subfolder to serve content from second.com ( Origin 2). for the following to be true…
Timar Ivo Batis
  • 163
  • 1
  • 5
5
votes
0 answers

Multi-tenant (multi-domain / multi-certificate) on AWS Cloudfront

I have AWS CloudFront serving content (from EC2/etc), this works fine. The content I have is 'multi-tenant' in that it adjusts its branding/theme based on the domain being used. In theory I would just want to have a single CloudFront distro serving…
devlop
  • 151
  • 1
5
votes
1 answer

Blue/green deployment - AWS Cloudfront with ELB as custom origin

I have following configuration: Cloudfront - ELB - AutoScalingGroup - EC2s Cloudfront serves file-[hash].js files (with chunkhash in their names) from custom origin (ELB). EC2s serve the file-[hash].js files for Cloudfront plus dynamically…
mgr32
  • 183
  • 4
5
votes
1 answer

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 siteB.mydomain.com I'm not sure how to configure the…
resting
  • 1,059
  • 3
  • 10
  • 10
5
votes
2 answers

Webstats for large Amazon S3/Cloudfront logs?

I'm trying to find a way to parse our Amazon S3 access logs to get some webstats. I've been trying to use AWStats 7, but I got to the point of where after day 9 of a given month it can't process any more logs because it runs out of memory. This…
Mxx
  • 2,362
  • 2
  • 28
  • 40
5
votes
3 answers

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 apache server. My question is, is it possible to…
Simon
  • 875
  • 2
  • 12
  • 22
4
votes
1 answer

AWS Lambda, AWS API Gateway, AWS Cloudfront gives 403 error

I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:- randomly-generated-link.aws.amazon.com/production I have also created an SSL…
1 2
3
26 27