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
3
votes
1 answer

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 Cache-Control header for my objects using AWS web…
jarvis
  • 2,006
  • 4
  • 18
  • 31
3
votes
1 answer

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 with a trailing slash. The issue is that when…
3
votes
0 answers

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: AccessDenied Access Denied BLAH…
YLivay
  • 31
  • 3
3
votes
1 answer

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::ERR_CERT_COMMON_NAME_INVALID. Heres the full message: Your…
3
votes
2 answers

Move static files from EC2 to S3 (or cloudfront) without updating links

Right now, I have a site entirely on an EC2 instance including all static files like css, js, and images. I'm wondering about the best way to handle moving them. For example, in my on a given html page I have this reference to a .js…
3
votes
1 answer

Can TLSv1 / SNI be blocked by the network? (routers, firewalls, etc)

Our web site serves static content through a content delivery network (AWS CloudFront) which is configured to respond to a number of CNAMEs and use our SSL wildcard certificate for these hostnames. Since the CDN may serve many different virtual…
3
votes
2 answers

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/product/4/2/4278_GalwayCr300X300.jpg However, images…
pokero
  • 249
  • 3
  • 4
  • 9
3
votes
1 answer

Is Cloudfront inherently faster than S3 (without considering distance)?

Just a simple question but I can't find a definitive answer online. Of course cloudfront is good for serving content globally, but is the infrastructure there inherently different from s3, so tha even if the distance to transfer is the same,…
StCee
  • 241
  • 3
  • 14
3
votes
1 answer

Can you setup a whitelist for allowed files in Amazon CloudFront

I'm using CloudFront as a CDN, and my website as an origin for pulls. Basically, I have cdn.mydomain.com pointing over to Cloudfront, and Cloudfront pulls any requests from www.mydomain.com. However, I don't want users to be able to request things…
Mike Christensen
  • 965
  • 1
  • 11
  • 21
3
votes
1 answer

S3 CORS through CloudFront not working in Firefox

I am using S3 CORS for serving fonts. If S3 domain name is used for serving fonts, it works in Firefox, but when CloudFront is used, it doesn't. Works with Google Chrome. My CORS configuration on S3
Abhishek A
  • 429
  • 5
  • 12
3
votes
2 answers

Redirect some URL requests to CloudFront and the rest direct to the normal server?

Say I have two types of URL requests that must be handled by my REST API: http://query.restapi.com/image.png?apikey=abc123 http://query.restapi.com/2.0//resource.json?from=umi.us_census00.state_geometry Only for static images (ie., regex:…
b_dev
  • 211
  • 1
  • 3
  • 6
3
votes
3 answers

CloudFront - Users requests static files non-stop to make your bill high?

I had this weird wondering once. If I am using CloudFront as my CDN, I pay per requests made on my static files. So here comes the wondering. Can one keep requesting the same file in a non-stop fashion (with a script or something), in order to make…
Jonathan Rioux
  • 1,938
  • 6
  • 33
  • 57
3
votes
1 answer

Is it possible to get a breakdown of the bandwidth usage by file in AWS CloudFront?

My sites traffic is finally starting to peak, and I am a heavy user of AWS CloudFront. I'd like to optimize our bandwidth, but I don't see anyway of getting a detailed breakdown of which files are contributing most to the bandwidth costs.
3
votes
1 answer

Configure AWS CloudFront to send custom query params to origin

Is it possible to configure my AWS CloudFront distribution to append to the request a custom query param (e.g a private key) before sending it to the origin? For example, the front end is calling *.cloudfront.net/get and CloudFront forwarding the…
2
votes
1 answer

attackers bypass aws waf to go for ec2 instances directly

My Setup I have Elastic Beanstalk application, with a public LoadBalancer and public IPs on EC2. The application is behind CloudFront, which is protected with AWS WAF from different attacks I am experiencing now. Route 53 forwards DNS queries to…