Questions tagged [amazon-cloudfront]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
235 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
55 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
86 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
123 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
1answer
185 views

hosting an Angular app - on S3 - and WordPress - on EC2 - on the same domain, with WordPress in a subdirectory

I'm building an Angular website which will also have a small WordPress installation for the marketing/sales team (to build landing pages). our marketing team is adamant that subdomains are bad for SEO,...
0
votes
0answers
71 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
160 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
910 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
1answer
166 views

How to add the trailing slash in general for an Apache + CDN architecture (without using Apache mod_rewrite)?

I would like to add the trailing slash in general when it is absent in the request URL: when user requests https://example.com/blog, it should be redirected to https://example.com/blog/ when ...
0
votes
0answers
344 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
639 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
167 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
54 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
78 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
98 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
807 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
1k views

Response from Cloudfront from S3 Origin keeps changing CORS Headers [duplicate]

here is my problem : CORS are set as supposed to be on the S3 : <CORSConfiguration> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</...
0
votes
1answer
762 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
38 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
854 views

How do I set up HAProxy Behind Cloudfront for Jenkins

Ok the network so far is end user (https)-> cloudfront (http)-> haproxy (http)-> jenkins My jenkins install mostly works but I see the error about proxy not being set up correctly, and I ...
0
votes
0answers
460 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
260 views

How to have CloudFront serves privated files

I want to use S3 + CloudFront for serving huge ~1,5GB files for download (not streaming). These files are premium, paid content so i don't want to expose them in the web. What's the best way to do ...
0
votes
1answer
681 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
82 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
877 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
208 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
1answer
109 views

Redundant Cloudfront usage?

I'm curious on my setup regarding usage of cloudfront. Currently I've this setup for my website. Internet_traffic <-> WAF <-> Cloudfront <-> ELB <-> EC2s I've wordpress ...
0
votes
0answers
269 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
289 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
122 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 ...
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
1answer
52 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 /...
0
votes
0answers
515 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
141 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
677 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
59 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
135 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
110 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-...
0
votes
1answer
1k views

gzip_http_version set to 1.0 but sends 1.1

I am trying to set Amazon CloudFront up with Nginx using W3 Total Cache and WordPress multisite. CloudFront only works with http 1.0 so, I read that you need to change the http version in gzip to 1.0. ...
0
votes
1answer
180 views

Is CloudFront (backed by S3) a good way to serve user-uploaded pictures?

Is CloudFront (backed by S3) a good way to serve user-uploaded pictures? For example forum avatars. Or maybe there is a better way?
-1
votes
1answer
1k views

what is the difference between amazon edge location and cloudfront? [closed]

How Amazon edgelocation and cloudfront relate to each other? I understand Both are used for reducing the latency and keep information (cache info)at the nearest location.
-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 ...