Questions tagged [amazon-cloudfront]

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

94 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
39 views

Auto redirect Amazon CloudFront content from www to non-www

I'm really new to Amazon CloudFront. I have set up an S3 with Cloudfront, then I'm using a custom domain that I setup in CloudFlare. I can access my photo normally with this kind of link : https://...
0
votes
0answers
56 views

AWS Cloudfront Usecase: Geolocation For Web App With Cookies and Query String Params

I want to make sure I have the correct usecase for AWS Cloudfront. Typically I believe it is used to cache static assets, such as those put in AWS S3 storage. For example, it may end up looking like ...
0
votes
0answers
145 views

Cloudfront with Nginx 302 redirect - resolve internally

Currently, We have hosted our application on two different paths, App1: https://website.wordpress.com [EC2 with Nginx] App2: https://poc.angularApp.com/ [Hosted in AWS S3 with Coludfront] My ...
0
votes
0answers
29 views

Give permission only to CloudFront to access AWS S3 website

Is there a way restrict access to S3 website? If one has website enabled S3 like this one: mywebsite.s3-website-eu-west-1.amazonaws.com? I have been reading that one could use custom headers to ...
0
votes
0answers
265 views

How to have cloudfront distribution listen on custom port for HTTPS?

I have setup a Cloudfront distribution on AWS with custom domain name to fetch firmware update file from S3. However, the existing devices that we have with customers make an HTTPS request to that ...
0
votes
0answers
62 views

CloudFront / S3 returning 404 when no trailing slash

Here is my subdirectory setup www.example.com www.example.com/blog ---- index.html ---- etc. When I visit www.example.com/blog/ (note the trailing slash), it serves index.html just fine. However, ...
0
votes
0answers
55 views

Origin Access Identity alongside AWS Signature Version 4

Given a Cloudfront instance acting as a web distribution for an S3 bucket, what's the recommended approach to a public GET, authorised PUT? Is it possible to use a combination of Origin Access ...
0
votes
0answers
91 views

Use AWS Cloudfront to forward to Wordpress site in subfolder

We use AWS S3 for hosting our React website. On top of it there is a Cloudfront distribution, which points our custom domain name https://www.mycompany.com to the mentioned website. Now, our ...
0
votes
0answers
196 views

cloudfront + wordpress redirecting to origin URL

I am working on the website https://mammoth.io. It is a wordpress site. I am configuring this Cloudfront to dfaqhcy4l1o60.cloudfront.net serve the previously mentioned site. Some URL like https://...
0
votes
0answers
78 views

Connecting React Router to S3

I'm using GatsbyJS to deploy a React site to AWS S3 -> Cloudfront with the plugin gatsby-plugin-s3 (https://www.gatsbyjs.org/packages/gatsby-plugin-s3/) This works great for my index page, but I'm ...
0
votes
0answers
170 views

Where can I check Cloudfront “access denied” logs

Origin: S3 How can I check logs regarding "access denied"? For example, number of access denied requests in a day and such. So that I can debug. I am using signed url to let users access the ...
0
votes
0answers
12 views

Intermittent errors when loading static resources from AWS CloudFront

I'm getting some complaints where images, javascript and css files are not loading from my AWS CloudFront distribution. I know the server is handling the request without any issue because the DOM ...
0
votes
0answers
980 views

Using Cloudfront as a reverse proxy

Original domain for which the distribution is set up for www.acme.com Set up an origin: Origin Domain Name: pre-prod.backend.com Origin Path: /abc/asset/acme Cache Behaviour Settings for the ...
0
votes
0answers
350 views

Cloudfront how to failover between multiple custom origins?

I have a Cloudfront distribution and two origin domains that are not hosted in AWS. I want to failover to the second domain if a file is not found in the first domain. I've created two behaviours, ...
0
votes
0answers
41 views

How to block a request which does not has a header using Amazon Web Services

My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone ...
0
votes
1answer
663 views

CloudFront Signed URL : Access denied to “subfolders”

I've several objects on my S3 buckets "AwesomeBucket" : AwesomeBucket/Video/file.mp4 AwesomeBucket/Audio/file.mp3 AwesomeBucket/index.html AwesomeBucket/hello.html From a single cloudfront signed ...
0
votes
0answers
170 views

Amazon S3 - Cloudfront - Images just randomly get permission denied

we have a very strange issue with the images on our websites. From time to time, some images get a permission denied response when our website is requested. These images are in a S3 bucket with ...
0
votes
1answer
58 views

Cloudformation Trouble with Parsing

I am having some issues w/ using CloudFormation and CloudFront. I have been using the AWS resources to form my template, found here "OpenVPNCloudFront" : { "Type" : "AWS::CloudFront::...
0
votes
0answers
90 views

AWS CloudFront not caching S3 content

I am trying to learn CloudFront, but it seems my distribution is not caching data correctly. I have an S3 bucket in Tokyo (I am in North America). I am trying to access the following file with the ...
0
votes
0answers
99 views

Cloudfront EC2 Configuration working only for Root URL

I have configured an EC2 instance with Cloudfront to use SSL(from ACM). It works fine only for the root URL (example.com) but not for other URLs (example.com/page1). 502 Error : The request could ...
0
votes
0answers
1k views

CloudFront HTTP/2 slower (high TTFB) than HTTP/1.1

My site was running on HTTP/1.1 with CloudFront at front, Webpagetest reports the load time usually at 2 seconds. Yesterday I enabled HTTP/2 (and SSL) on CloudFront, expecting to see an improvement. ...
0
votes
1answer
828 views

Does basepath mapping create a CloudFront Distribution

Does basepath mapping on an API in API gateway use a 'hidden' cloudfront distribution? I have an API on API Gateway, with base path mappings on a domain. However, this doesn't go through cloudfront--...
0
votes
1answer
794 views

Whether Cloudfront Origin can be a Route 53 recordset created for Application Load Balancer DNS?

I have created a A Route53 recordset for AWS application load balancer DNS. My question is whether AWS Cloudfront origin can contain this recordset url or not? For example: ALB DNS name: xxxx.us-...
0
votes
1answer
39 views

Hosting a Wordpress Blog using Apache as sub-directory

I have an existing static web-app on S3 behind CloudFront, let's say at example.com I want to add a WordPress blog, which should be accessed at example.com/blog For the WordPress blog, i've set up ...
0
votes
0answers
469 views

Getting CloudFront to Work with EC2 Wordpress Installation + Route 53

I have a problem getting CloudFront to work with a BitNami Wordpress installation I’ve done on an EC2 instance. This is my first time working with EC2, so please forgive my noob level in AWS ...
0
votes
1answer
3k views

Nginx reverse-proxy to a cloudfront distribution and preserve gzip compression

I have problems trying to set up a nginx reverse-proxy that preservers gzip compression. My setup : I have a CLoudfront distribution with gzip compression enabled (as you can see on http://...
0
votes
1answer
701 views

How to setup DigitalOcean DNS link to AWS CloudFront Distribution

I have a DNS setup with DigitalOcean for the domain ghazanfarmir.me What I want to do? I would like a sub domain i.e. static.ghazanfarmir.me to be linked to the CloudFront Distribution, which then ...
0
votes
1answer
67 views

S3 buckets : ACL read all permissions

I've received email from aws which says my aws s3 buckets are configured to allow read access to anyone on internet and have asked me to review the ACL and secure it. Basically my s3 buckets are being ...
0
votes
0answers
87 views

Testing CloudFront in Europe

I'm trying to set up CloudFront so that European users can download from my S3 bucket quickly. I've already set it up and am now testing. To test, I have created a Windows EC2 instance and based it ...
0
votes
1answer
892 views

Serving a React app with s3 and Cloudfront

I'm wondering if this is feasible. I'm thinking about serving a React app using s3 and Cloudfront. Some of the routes are prerendered, and can be served as static index.html files. Other routes, on ...
0
votes
1answer
21 views

Securing CloudFront video on a SaaS platform

I have few videos which needs to be embedded in a SaaS LMS platform. Is there a possibility of making it available only if played from the SaaS platform. I looked at the Origin Access Identity - they ...
0
votes
1answer
212 views

Content of WordPress site is not being loaded from CloudFront

We have configure our WordPress website with AWS CloudFront. We used w3-total-cache plugin to configure CDN for CloudFront. All the static content has been already cached in CloudFront but somehow ...
0
votes
0answers
270 views

AWS CloudFront doesn't find my ELB as an origin in Mumbai region

I have my infra setup in AWS singapore region. Now I want to migrate to Mumbai region. I have launched 2 EC2 instances in AWS Mumbai region and deployed my web application and kept behind ELB which ...
0
votes
2answers
293 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
205 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 ...
0
votes
0answers
524 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 ...
0
votes
1answer
142 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
696 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
63 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
0answers
136 views

CLOUDFRONT - Site host name, https://media.domainname.com, does not match your SSL certificate Subject Name

I woke up this morning to an email from Google Webmaster Tools saying the following: We have noticed that the host name of your site, https://media.domainname.com, does not match any of the ...
0
votes
0answers
111 views

Amazon cloud front caching is not working

we have setup in such a way that end user request goes to Amazon cloud front and if cached resource is available on Amazon Cloud front otherwise it will forward request to origin (nginx server on ...
0
votes
0answers
2k views

Uploading an SSL cert to AWS — Converting cert to PEM

Short Question I have a working crt file imported into tomcat keystore and I need a certificate file and private key file in pem to uplaod to aws cloudfront. Long Question Our SSL cert issued by go-...
-1
votes
1answer
77 views

AWS Lowest latency infrastructure

I'd like to setup the most correct and lowest latency infrastructure for AWS. I would like to serve static Javascript files over CloudFront, and on top of that - a call to a dynamic server that will ...
-3
votes
1answer
1k views

How do I restore the real client IP on nginx behind CloudFlare and CloudFront?

How will I restore the real client IP Address on CloudFlare <> Amazon CloudFront <> nginx? What would I include in my nginx config?