People who code: we want your input. Take the Survey

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
33 views

React Js + AWS Cloudfront + SaaS + SSL Certificates

This is the scenario I have in mind SaaS application Frontend built using React Js Hosted using S3 bucket + Cloudfront Customer domains pointing to this application using CNAME Questions - Can ...
1
vote
0answers
26 views

Transfer Compression with Cloudfront and nginx SSI

Is there any way to enable GZIP / Brotli compression on Cloudfront if the origin is a nginx server with SSI (Server Side Includes) enabled? The issue seems that nginx SSI drops the Content-Length ...
0
votes
0answers
13 views

Does Cloudfront (or any CDN) share cache between edge locations?

I've reviewed the documentation here, but I don't think my specific question is answered, so I'm hoping this community can help me out. I've tried using a VPN for testing different regions but I'm not ...
1
vote
0answers
19 views

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 origin? For example, the front end is calling *....
0
votes
0answers
14 views

What cdn or cache modifies max-age dynamically as content ages?

I am trying to determine what is caching web page responses within the server infrastructure in a transparent cache like behaviour. The cache header defined by the origin server is fixed one hour (...
0
votes
0answers
8 views

Modify an xml response via Lambda @ edge

Newbie question:- I have a origin server that is providing a xml response over URL that I wish to modify (change/insert text). I am hoping to do this via L@E using python so that the enduser will ...
0
votes
0answers
25 views

Cloudfront accepts only first Origin encountered even if S3 bucket CORS rules allow several

I have a web site that is available from different top domains for different countries (www.example.se and www.example.dk) that share all the kinds of static assets that are best served from CDN. My ...
0
votes
1answer
53 views

Will using reverse proxy negate the effect of CDN?

Goal: Serve a specific sub directory of a domain from a different CDN (cloudfront in our case). We are thinking of utilizing Nginx as a reverse proxy to achieve this. For example, the following ...
0
votes
0answers
15 views

AWS - Serving two react apps on the same CloudFront distribution. How do I deal with the static directory?

I have two React apps I want to serve with one CloudFront distribution. They both rely on react-router for navigation. I have two S3 buckets configured as origins. The default (*) behaviour is set to ...
1
vote
0answers
182 views

How to whitelist Authorization header in CloudFront custom Origin Request Policy?

I have created the following CloudFront Origin Request Policy: I need Authorization header (without Authorization header the AntiForgeryToken header is not forwarded) but I do not understand why ...
0
votes
0answers
176 views

Understanding AWS CloudFront Cache Policy for dynamic web pages

I am working on an e-commerce website, where users can buy/sell products (the website is dynamic) I have created the following CloudFront distribution with the following Behaviors: As you can see I ...
0
votes
0answers
11 views

Consultation: Caching Best Practice for an application server running behind CloudFront

I have a kubernetes cluster running a REST API application server consumed by our front end application. This cluster is publicly accessed via AWS Cloudfront for cache, security and constraints ...
0
votes
0answers
41 views

Do CNAME mapping of my subdomain to Sendgrid for link branding using Amazon Cloudfront CDN

I want to have link branding with SSL on my domain example.com, so I created sub-domain abc.example.com, I want this abc.example.com to CNAME to sendgrid.net. I have done CNAME mapping but it seems ...
0
votes
1answer
74 views

CloudFront “Compress Objects Automatically” and REST API

I have a cloudfront distribution in front of a REST API server. Just for now, I need to disable cache, so I'm using the Managed-CachingDisabled policy. I can't get any responses to return as gzipped. ...
1
vote
1answer
128 views

AWS Cloud Front, how to request origin using correct url

I'm trying to cache a website that is on an EC2, it has an URL uncached.xyz.com, so i created an Cloud Front with the origin pointed to uncached.xyz.com and created a record xyz.com that points to the ...
0
votes
0answers
9 views

How to set up a subdiectory from route 53 to an external blog?

Our domain is registered on route 53. The root of the domain (i.e. exampledomain.com) directs to a landing page. We'd like to redirect a subdirectory of that root domain (i.e. exampledomain.com/blog) ...
2
votes
0answers
67 views

Why is CloudFront ApiGateway CloudFront-Viewer-Country reporting US as the country for eu-west-1 distribution and viewer in UK?

I have an AWS CloudFront distribution created using CDK (CloudFrontWebDistribution) fronting an ApiGateway, deployed in eu-west-1 (Dublin). I can see in the API logs that the CloudFront-Viewer-Country ...
1
vote
1answer
217 views

Unable to access S3 static website using https

I have followed all the steps from https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-https-requests-s3/ but my website still cannot be accessed using https. My certificate was issued ...
-1
votes
1answer
114 views

Suggestions for AWS setup wanted

For my next project, I'm giving AWS and server-less a go, but I'm not sure how to reason about the different AWS services. So here's hoping that someone here has a good feel for it. The project ...
0
votes
0answers
122 views

Cloudfront does not pass Host header properly

With my default cloudfront settings (which is basically only setting origin domain name, no other changes made), when accessing origin domain through cloudfront, I can view the headers and the Host ...
1
vote
0answers
28 views

Configure AWS CloudFront to add a default metadata param to the uploaded files

I need to have the Content-Disposition = “attachment” set to all files uploaded to the s3 bucket. How do I configure CloudFront to create this param and added it to metadata ? I configured the ...
0
votes
1answer
56 views

Cloudfront SSL with Subdomain pointing to S3 bucket works, but still redirects to S3 URL

I've set up an S3 Bucket that I want to use as a CDN but with my own subdomain. For example, myfiles.mydomain.com. So, I set up a Cloudfront web distribution that points to the bucket named "...
0
votes
0answers
163 views

nginx reverse proxy to aws cloudfront

we have requirement in nginx to accept request from route53 DNS and pass it to AWS cloud-front , i have tried doing "proxy_pass" to AWS cloud-front URL , i am getting 503 bad gateway. not ...
0
votes
1answer
374 views

On AWS, is it possible to have CloudFront proxy requests to API Gateway while maintaining the request's query string?

I have a CloudFront distribution configured with multiple Origins, including an API Gateway deployment. I'm trying to create a Behavior on CloudFront so that any requests received to a /api/* path ...
0
votes
0answers
267 views

How to check AWS cloudfront traffic limit? 504 server error

I have a website that handles ticket selling which opens once a year. Many peoples come to the website at a specific date and time. However, some users received 504 Status Code (Gateway Timeout) from ...
0
votes
1answer
166 views

Preserve Cloudfront brotli compression through a nginx reverse_proxy

My question is similar to Nginx reverse-proxy to a cloudfront distribution and preserve gzip compression but especially regarding the new brotli compression algorithm that is supposed to perform ...
0
votes
1answer
126 views

Why CloudFront-Viewer-City is always null?

I have created a CloudFront distribution just for testing purposes. Why is CloudFront-Viewer-Country passed to the origin but CloudFront-Viewer-City is not? Settings I believe these are the two ...
0
votes
1answer
75 views

Setting up a multi CDN with cloudfront based on location

I am in a bit of a specific situation with what I am trying to achieve Right now I host on cn-north-1 with a CloudFront distribution. I have a Route53 CNAME setup pointing to this distribution on ...
0
votes
1answer
94 views

Do the IPs assigned by CloudFront Dedicated IP stay the same forever?

If you use CloudFront and choose the dedicated IP approach to support clients without SNI, do the IP addresses stay the same forever? I understand that AWS must allocate 30-40 IPs around the world ...
0
votes
1answer
162 views

Nginx proxy_pass multiple redirects issues

I'm having issues with nginx and 302 redirects to files that are behind multiple redirects. so I'm trying to proxy this request and get 502 bad gateway. location /85319 { proxy_pass https://traffic....
0
votes
0answers
368 views

Spring Boot Application on EC2 Keeps Terminating when Served through CloudFront

I've deployed a Spring Boot REST application in an Amazon EC2 instance. Then I created a CloudFront distribution with behavior of "Redirect HTTP to HTTPS" and origin configuration as "...
0
votes
1answer
448 views

Filter to only pass specific headers by Nginx reverse proxy

For example here is a list of headers set by the frontend project and send all by default * accept: application/json * accept-encoding: gzip, deflate, br * accept-language: en-GB,en-US;q=0.9,en; * ...
0
votes
0answers
17 views

Cloudfront Logs with Athena

I'm trying to get my Cloudfront logs processed by Athena as per this official guide. However, my Cloudfront stores the logs in compressed .GZ format and not plain-text. How can I have the Cloudfront ...
0
votes
0answers
251 views

Enabling http/2 from Cloudfront back to the origin

We have a server that acts as a proxy and is trying to stream HTML content to the browser, via Cloudfront. However, as per the link below, Cloudfront connects back to the origin using http/1 which ...
0
votes
0answers
69 views

What is current (mid-late 2020) best practice for AWS CloudFront configuration for WordPress?

I'm trying to figure out the Right Way to configure AWS CloudFront, today, such that maximal content is served from the CDN, but WordPress still works. AFAICT, the current Best Practices for WordPress ...
0
votes
0answers
71 views

How can I allow users to map their own domain to a subdomain on my Cloudfront site?

So I run a service where a user can create a site and they get their own subdomain. So if a user has site a-site-name their subdomain will be a-site-name.domain.com. Some of the users want to be able ...
1
vote
1answer
51 views

Accessing photos from AWS CloudFront

I have an S3 bucket called my-bucket. There is a folder inside my-bucket called uploaded-photos. I can access the photos inside this bucket using the following URL: http://my-bucket.s3-ap-southeast-2....
0
votes
1answer
38 views

mod_authz_basic and CloudFront (was: mod_authz basic Directory vs. Location with vhosts)

I'm having a problem with using Apache basic authentication. I have a single EC2 server sitting behind an AWS elastic load balancer and CloudFront. I run several domains on the machine. I use Apache ...
0
votes
1answer
114 views

CloudFront what to use for Origin Domain Name when connecting to Wordpress

I have a Wordpress site set up at site.example.com and I am trying to configure a CloudFront distribution as a reverse-proxy to reduce the load to my origin server. In the past I have used CloudFlare ...
1
vote
0answers
47 views

How does Origin Protocol Policy overlap with Viewer Protocol Policy?

The question is about Amazon CloudFront. The names in the title refer to two types of settings. The former can be edited via the "Origins and Origin Groups" tab, while the latter via the &...
0
votes
0answers
34 views

Understanding how nginx works with a CDN like Cloudfront

I run a Ubuntu 18 server on an EC2 instance, on which I installed Ghost. Ghost automatically sets up nginx as a reverse proxy that lets the Internet see the website that runs on the local port 2368 (...
1
vote
1answer
286 views

Is it reasonable to embed Cloudfront IP ranges into an NGINX configuration?

I'm using CloudFront as a proxy for my EC2 instance, so all traffic is routed through CloudFront first. The issue is that I also need the original client's IP address for each request to my EC2 ...
0
votes
1answer
427 views

Redirect apex domain to www with Route53 and CloudFront

I'm trying to setup redirect from the apex domain example.com to www.example.com with route53, cloudfront and s3. I've seen many tutorials online and discussions here on the topic, but nothing has ...
0
votes
2answers
229 views

Using Cloudfront as a HAProxy backend server using https

I have a CloudFront resource sitting in front of my S3 bucket. It's accessible at — https://<id>.cloudfront.net but if I hit — <id>.cloudfront.net:443 I get a 400 Bad Request. I want to ...
0
votes
1answer
97 views

Cloudfront behaviors with S3, Wordpress backend, and Vue frontend

I'll try to explain my situation and issue as best as I can. Previously I had a wordpress site behind cloudfront. Set up behaviors and that all worked well. Recently I have moved to using my wordpress ...
0
votes
1answer
94 views

Second identitcal CloudFront distribution error: CNAMEAlreadyExists

I'm migrating my static website from one AWS account to another. I want to have zero downtime and decided to pull up the whole infrastructure on the second, then just switch the domain name's DNS ...
1
vote
1answer
183 views

Trying to revoke public access on CloudFront S3 bucket

All the AWS security tools are bugging me all day about having public S3 bucket access turned on. So I said sure, the only bucket we have that needs public access is our cloudfront bucket, let me fix ...
0
votes
0answers
35 views

Amazon Cloudfront - Increase data transfer speed like tiktok

I have been trying to setup CDN using Amazon Cloud front. All configurations are done. But when I compare it with tiktok's CDN, tiktok's CDN is able to transfer 3.2 MB file in just 300 miliseconds. ...
0
votes
1answer
38 views

CloudFront distribution from S3 bucket: big “bucket is public” warning. What can go wrong?

I'm moving an existing static website to S3/CloudFront. Following some documentation from AWS, I setup a policy on the S3 bucket to make it public: { "Version": "2012-10-17", "Statement": [ ...
0
votes
0answers
1k views

Access denied for S3 bucket with redirect access via CloudFront

I have public S3 bucket exposed via CloudFront to S3 A record for www.mezinamiridici.cz. https://www.mezinamiridici.cz/ - works http://www.mezinamiridici.cz/ - redirects to https://www.mezinamiridici....

1
2 3 4 5
7