Questions tagged [amazon-cloudfront]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
2k 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: ...
1
vote
1answer
1k views

Force AWS CloudFront to refresh resources from origin without user requests

I'm deploying a CloudFront distribution for a widely distributed network. I'm using my own server as origin and I've configured the cache expiration to a custom value (say 24 hours). Everything works ...
1
vote
2answers
530 views

AWS: In what situations would you NOT want to put your entire domain in front of a CloudFront distribution?

Given the relatively recent support for POST/PUT/etc. (http://aws.amazon.com/about-aws/whats-new/2013/10/15/amazon-cloudfront-now-supports-put-post-and-other-http-methods/), if you don’t require any ...
1
vote
3answers
2k 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
162 views

Setting up Server 1 to parse and pass requests for static files to Server 2 and computationally intensive requests to Server 3

Problem: Our REST API is for requests for static images and requests for other computationally intensive tasks, such as rendering new images. We noticed that our Apache-Django server gets bogged ...
1
vote
3answers
461 views

AWS Elastic load balancer doesn't decrease instances from Alarm Trigger

I have a load balancer that I created an auto-scaling-group and launch-config for. I created the auto-scaling-group with a min-size of 1 and max size of 20. I have a scaledown policy: as-put-...
1
vote
1answer
163 views

How do I make single page expiration 1 hour CloudFront

I am using CloudFront to distribute content from one of my domains. There is no S3 tie-in here. By default, content expires after 24 hours, which is fine for most of the data on the website, ...
1
vote
1answer
1k views

Does anyone have a config to process AWS CloudFront/S3 logs with AWStats (or similar sw)?

I don't want to give an external company like s3stat access to my logs. I know that AWS logs S3 and Cloud Front in a format readable by AWStats. Has anyone used AWSats to analyze them? S3stat used ...
1
vote
2answers
50 views

Custom subdomain on Route 53 pointing to cloudfront distribution and s3 static website not working

I'm trying to configure a custom domain name ("test.example.com") transferred to Route 53, pointing towards an S3 static website bucket ("test.example.com"), through the use of a cloudfront ...
1
vote
0answers
63 views

Client connects to Cloudfront via HTTP2, then connects to an Apache Server via HTTP1, can HTTP2 vulnerabilities be exploited in the HTTP1 connection?

We have an environment where customers connect to a Cloudfront distribution via HTTP2 and then from the Cloudfront distribution to an Apache web server via a HTTP1 connection. [ client ] ---(https, ...
1
vote
0answers
138 views

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 ...
1
vote
0answers
273 views

Nginx Redirect to EC2 Instance

ORIGINAL I had angular (version: 7) site which was deployed on S3 bucket, but for SEO purposes, recently I integrated Angular Universal. Now I moved site/frontend from S3 bucket to EC2 instance. I ...
1
vote
1answer
355 views

Cloudfront (w/ S3) Static Website Doesn't utilize index.html from sub directories

I have my website hosted on S3 with CloudFront as a CDN, and I need these two URLs to behave the same and to serve the index.html file within the directory: example.com/directory example.com/...
1
vote
0answers
289 views

The way AWS Lambda@Edge accesses to S3 restricted by Object Access Identity (OAI)

I have a question. Is the Lambda function (written in node.js) associated with CloudFront accessible to S3 objects restricted by Object Access Identity (OAI)? If yes, could you tell me how to access? (...
1
vote
0answers
1k views

Cloudfront Access Denied, but only on certain files

I've read through several similar issues, but they differ in that This isn't a website, just CDN for images I have no subdirectories I was notified by our marketing dept that some of our photos ...
1
vote
1answer
5k views

How should I configure DNS for my GoDaddy domain with CloudFront?

I have a static web application being hosted in an S3 Bucket that I am currently hosting with Amazon CloudFront. It is a travel site, so I would like for users around the world to be able to quickly ...
1
vote
1answer
1k views

Why CloudFront does not return Access-Control-Allow-Origin?

I'm trying to figure out why cloudfront distribution does not cache / send through access-control-allow-origin. When I curl my website: HTTP/1.1 200 OK Date: Sat, 03 Mar 2018 07:42:01 GMT Content-...
1
vote
0answers
364 views

Cloudfront not compressing Transfer-encoding chunked

My setup looks like this: User->Cloudfront->Nginx->gunicorn Apparently nginx, doesn't compress (gzip) when there is a CDN inbetween (Via header present) so my nginx sends: Transfer-encoding: chunked ...
1
vote
0answers
883 views

Disable Detailed Response Headers from CloudFront to Satisfy Veracode?

If this is the wrong StackExchange sub-exchange, please redirect me, I'm happy to move this question. I was just moved onto a project managing a CloudFront instance. I've never used any Amazon cloud ...
1
vote
0answers
739 views

Chrome stalled requests for some HTTP2 resources

Issue Some resources from the CDN take minutes to load because, according to Chrome devtools, are "stalled". This happens only on Chrome and only the first time I open the page in an incognito ...
1
vote
0answers
651 views

Heroku SSL redirect to www.example.com with AWS Route 53 and Cloudfront

Current Situation example.com == examplecom and so on because of spam I've a Domain examplecom on GoDaddy and a SSL cert for it. The real application is hosted on Heroku at exampleherokuappcom. I ...
1
vote
1answer
566 views

Amazon Cloudfront with S3 bucket - 2 origins

I am bit confused with setting up Amazon Cloudfront and S3 bucket. I've got my bucket setup and using the wordpress WP Offload S3 plugin to store any images in this bucket. When checking the image ...
1
vote
0answers
43 views

How to sign Url on behalf of a certain origin access identity (cloud front)

I want two origin access identities for cloud front (and s3). One that can just view content , and another , that can just put content (and maybe another that can just delete ) I know I can create an ...
1
vote
0answers
771 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 -...
1
vote
0answers
131 views

Cloudfront Distribution Wont Accept New SSL Certificate

I uploaded a reissued new multi-domain certificate via IAM, but when I access the CDN and check the cert, it still has the old cert with the old domains. Tried so far: I tried clearing the browser ...
1
vote
0answers
1k views

CORS Fails on CloudFront Distribution with Nginx Origin

I have a CloudFront distribution set up with an Nginx server as the origin (a Media Temple DV server, to be specific). I enabled the Access-Control-Allow-Origin: * header so fonts will work in Firefox....
1
vote
1answer
263 views

Amazon CloudFront Synchronization

I want to leverage Amazon CloudFront to "cache" my webserver such that my website stays up even if my webserver goes down. I understand CloudFront has many edge servers that facilitate the request/...
1
vote
0answers
153 views

Randomly broken files from CloudFront

I host my software installers on S3 and distribute them through CloudFront. Had couple complaints of broken files from customers. Problems appeared the same night. My files are DMG disc images. ...
0
votes
3answers
2k views

How to block CloudFront or other CDN to access my website

Some guys create a CloudFront CDN to proxy my site, so people can access my website using url like df03039lsls933.cloudfront.net instead of www.example.com How to block this using nginx? From ...
0
votes
2answers
394 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
1answer
4k 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 ...
0
votes
2answers
3k 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 ...
0
votes
2answers
237 views

Any way to get CloudFront to accept single-part (top level) CNAME?

We have "go links" where I work, such as http://go.mycompany.com/foo which redirects to an arbitrary location. It's powered by a simple Python app on Google App Engine that keeps a mapping of keyword =...
0
votes
1answer
690 views

Why i can't see created ACL into the distribution settings of cloud front?

I have created an ACL. And it is also enabled. And i want to associate with a cloud front distribution. There are two problems 1. I do not see my ACL into the dropdown list of distribution settings ...
0
votes
1answer
537 views

NS1 and CloudFront, ALIAS vs CNAME

I have my entire website behind a CloudFront distribution, and I used to have a Route53 zone, where the zone apex record for my website pointed to an ALIAS record for the CloudFront distribution. ...
0
votes
2answers
2k views

How do I enable redirection on a domain for an S3-hosted website with CloudFront in front of it?

I'm trying to get redirects to work within a domain name for an S3-hosted static website. That is, if I point mydomain.com/foo, I want it to redirect to mydomain.com; this should basically mirror ...
0
votes
1answer
1k 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
1answer
13 views

/index.html: better to use no-store or no-cache for cache-control?

When the root page is subject to frequent invalidation, like a news feed, do you generally prefer no-store or no-cache in the response header of cache-control? One advantage of no-store - from what I ...
0
votes
1answer
91 views

Caching video content on CDN

I'm currently running an application that delivers streaming video. All of the video content is hosted on our server, but we'd like to take some of the bandwidth load off of our server and speed up ...
0
votes
2answers
737 views

Amazon Cloudfront, S3 and EC2

I'm trying to use Amazon Cloudfront as a CDN provider but unsure of what other services are meant to be. Do I have to use S3 and EC2 as Virtual Server to host my files and change hosting provider in ...
0
votes
3answers
5k views

CloudFront Dynamic Content & Apache using Multiple Virtual Hosts

I've tried to setup CloudFront to point to an Elastic Load Balancer. I can see the requests are reaching the web server (which as multiple Virtual hosts configured) however the requests always end up ...
0
votes
2answers
382 views

Simulating 1000 concurrent downloads

I'd like to simulate 1000 concurrent downloads of a single file from Cloudfront. I figured I'd setup ~10-20 xlarge EC2 instances for this. Is there an obvious way I'm missing to trigger this at the ...
0
votes
1answer
819 views

Anyone using RTMP on CloudFront? I can't specify a crossdomain.xml file

I'm using a streaming distribution on CloudFront to serve media via RTMP. Obviously I want to restrict the crossdomain.xml file but CloudFront is only serving it's default one. The docs give ...
0
votes
1answer
895 views

Static website cname problem, cloudfront

Hey guys, one quick question. I've got a problem setting the cname for my domain http://snaremedia.com . I use godaddy and set the www cname to point at my cloudfront url, but currently my domain only ...
0
votes
1answer
27 views

Redirecting HTTPS -> HTTPS on AWS?

I have a static website w/ S3 + Route53 + Cloudfront set up. I am successfully able to do the following redirects: http://example.com -> https://example.com http://www.example.com -> https://example....
0
votes
1answer
554 views

AWS CloudFront Data Transfer Out

I want to use CloudFront to deliver files(each file size varies from 500 MB to 1 GB) for my users. Pricing for "Regional Data Transfer Out to Internet (per GB)" for India is mentioned as $0.170/GB. ...
0
votes
1answer
67 views

AWS CloudFront - using custom domains

I am a bit confused by Amazons CloudFront pricing structure. So I want to use CloudFront to serve assets from my S3 bucket, with a domain like assets.domain.com and I want to use secured urls like ...
0
votes
1answer
783 views

How do I limit S3 object access to CloudFront only?

TL;DR - How do I block requests for https://s3-eu-west-1.amazonaws.com/BUCKET-NAME/FILE.EXT while allowing requests coming via CloudFront? I followed the AWS documentation "Restricting Access to ...
0
votes
1answer
655 views

Cloudfront GoDaddy DNS - SSL Certificate Issues

I have a CloudFront distribution setup and working correctly. I also have an SSL certificate issued using ACM. My GoDaddy DNS has a CNAME entry for www which points to the cloudfront distribution ...
0
votes
1answer
191 views

Bypass traffic on AWS WAF based on content-type

Is it possible to bypass WAF on Cloudfront if the request is fore statics files like images? This is a simple question, but one that has a big impact on operating cost. Because the charge of ...