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

373 questions
0
votes
1 answer

Cloudfront distribution with react app and wordpress app hosted on same domain - how to get browsers with react app cached to render wordpress app?

I have a domain that hosts a react website in an s3 bucket via cloudfront. There is also a wordpress site hosted on a subdomain of that domain, and in the cloudfront distribution for the web app, I have two behaviors set up with path patterns en and…
Katie
  • 103
  • 3
0
votes
1 answer

Cloudfront 502 error with ALB origin in different region

I have a CloudFront which has one of its origins as an application load balancer, this load balancer is available in a different region from the CloudFront which is only available in N.Virginia and is using a different SSL certificate, as its domain…
0
votes
0 answers

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 header, as it doesn’t know the content length at the…
0
votes
1 answer

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 location setting in Nginx, will serve the path…
Suresh
  • 101
  • 1
0
votes
0 answers

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 have 2 types of Responses: Images: I want the…
0
votes
0 answers

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 abc.example.com is CNAME for…
0
votes
1 answer

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. I'm using cURL passing --compressed and the…
rynop
  • 219
  • 4
  • 15
0
votes
1 answer

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 "myfiles-mydomain-com", added a certificate for…
0
votes
0 answers

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 AWS CloudFront .Some users can still register…
0
votes
1 answer

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 better than gzip in some cases My AWS Cloudfront…
0
votes
1 answer

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 relevant settings:
Alex R
  • 972
  • 3
  • 12
  • 26
0
votes
1 answer

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 Global AWS The problem I am facing is that the…
NooBskie
  • 105
  • 8
0
votes
1 answer

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…
Saimon
  • 1
0
votes
1 answer

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; * authorization: xxxx * cache-control: no-cache *…
Vincent-cm
  • 103
  • 5
0
votes
0 answers

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 to have their own domains instead of the…
1 2 3
24
25