Questions tagged [amazon-cloudfront]
Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.
404
questions
2
votes
2
answers
2k
views
What is the difference between S3 Multi-Region Access Points and AWS CloudFront?
Can anyone explain the difference between S3 Multi-Region Access Points and AWS CloudFront?
The documentation for a multi-region access point states:
Multi-Region Access Points offer a global S3 ...
1
vote
1
answer
2k
views
CloudFront does not seem to invoke lambda@edge function
I have a CloudFront distribution. The origin is an S3 bucket that uses OAI.
I have created a lambda@edge function following directions from https://aws.amazon.com/blogs/compute/implementing-default-...
0
votes
0
answers
42
views
Image Storage Options In AWS
In the case of my scenario, The loading issue seems to have been caused by making HTTP requests with no HTTP timeout set to our CDN. The synchronous requests held the page execution for many minutes ...
1
vote
0
answers
3k
views
CloudFront gives 403 error when accessing a web app hosted outside AWS through the configured subdomain
I've been tasked with setting up our web app on CloudFront. Our web app is hosted on an Ubuntu server that is completely outside AWS.
I have little to no experience with CDNs, but I've made some ...
2
votes
0
answers
1k
views
CloudFront CORS request using signed cookies and withCredentials, not sending back Access-Control-Allow-Credentials unless I include some extra header
I'm having a very strange issue that I can't seem to crack. I configured a private CloudFront distribution to serve content from a private S3 bucket. I am using signed cookies to grant access to the ...
0
votes
1
answer
62
views
Sending push notification to s3 origin website from lambda
I want to send a websockets notification from lambda function to clients, on a website hosted via s3 origin with cloudfront.
Could someone help me with this, please? Thanks.
1
vote
1
answer
2k
views
Why is a post/upload of a 100k JSON file to an AWS CloudFront endpoint resulting in 504 error?
On a wordpress site, we have requests coming in to CloudFront, which sends the request to origin (if necessary) which goes through an ELB, and to two or three instances that will service the request.
...
0
votes
2
answers
2k
views
Redirect domain root to CloudFront with nginx?
Note - I see several other questions asking about redirecting to the root of their S3 static websites, but I didn't see anything about redirecting from the root of a domain name to a CloudFront/S3 ...
0
votes
1
answer
415
views
aws cloudfront custom ssl pricing for subdomain and www
I have created two s3 origin website linked with cloudfront and used acm certificate.
But I recently found out pricing are different between https://admin.example.com and https://www.example.com.
www....
0
votes
0
answers
790
views
CloudFront delivery is slow in particular location
In our scenario, I found that our CloudFront delivery particularly in the Japan area is very slow for a few days. which lead our site to become slow in the time of loading the media contents .our s3 ...
3
votes
1
answer
2k
views
Cloudfront caching resources even though response headers should prevent it
I have recently setup a Cloudfront distribution with the following behaviour cache policy:
TTL settings:
Minimum TTL (seconds): 0
Maximum TTL (seconds): 31536000
Default TTL (seconds): 0
Cache Keys:...
0
votes
1
answer
223
views
AWS architecture - traffic mirroring
We are going to migrate our database from Aurora Serverless to Aurora Cluster. Before that, we'd like to test the performance of the new database in a real-time traffic scenario. We have thought about ...
2
votes
2
answers
1k
views
AWS S3 Static Website vs CloudFront OIA
It seems there are kind of two ways to host a static website on S3/CloudFront.
Create S3 bucket with full public access and Static Website set to Enabled + CloudFront config
Create S3 bucket with no ...
0
votes
0
answers
647
views
How can I ensure DNS changes take effect within TTL, even when browser reuses HTTP connections?
I am helping implement CloudFront CDN for an NGINX HLS video origin. If you're not familiar, HLS in the browser just uses XHR or fetch to constantly request .m3u8 and .ts files via HTTP and display ...
0
votes
2
answers
1k
views
A record in Route 53 doesn't resolve
I added an A record in my Route 53 hosted zone pointing to the CloudFront. But for some reason, it doesn't work.
When I do dig mywebsite.com
I get
; <<>> DiG 9.16.1-Ubuntu <<>>...
1
vote
0
answers
752
views
Can CloudFront handle repeated headers?
According to this answer, you can have multiple headers for certain headers, such as Cache-Control.
Will CloudFront respect both times that Cache-Control appears? For example, if the Origin were to ...
2
votes
2
answers
3k
views
Can't point my subdomain address to CloudFront distribution (using S3 + CF + Route 53)
[Jump to bottom to see updates and latest attempts]
First of all, I apologize if I misuse terminology here. I work as FE developer and this area on networking and setting up domains and aws services ...
0
votes
0
answers
68
views
AWS/S3/Cloudfront/GoDadday and subdomains
I am wondering and hoping this is possible.
On AWS I have two s3 buckets to separate a client facing application and an administrative application
mysite-app
mysite-admin
I have a cloudfront ...
8
votes
1
answer
2k
views
Does using CloudFront just to enable https make sense?
If I have an EC2 instance, running a web app (HTTP), and I have an Amazon-provided SSL certificate, I can use CloudFront to make the EC2 instance accessible via HTTPS, handling the certificate ...
0
votes
1
answer
152
views
Deploying a Serverless site behind CloudFront
I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files.
I have set up a CloudFront ...
0
votes
1
answer
187
views
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 ...
6
votes
1
answer
4k
views
AWS: How to redirect many domains to a page on another domain?
My objective
I have a number of domains (e.g. 10 or 20) and I would like to redirect any visitors to anywhere on those pages to one page on another domain (for example my stackoverflow.com profile ...
1
vote
1
answer
2k
views
AWS Cloudfront CORS trouble with font files
I have a Javascript application that is delivered to the browser from a CloudFront endpoint. All static files of the application are hosted in an S3 bucket. That involves a whole bunch of javascript ...
0
votes
1
answer
2k
views
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 ...
1
vote
0
answers
158
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 ...
0
votes
0
answers
333
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 ...
3
votes
1
answer
1k
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 the origin?
For example, the front end is calling *....
0
votes
1
answer
330
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 ...
4
votes
2
answers
7k
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
0
answers
393
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 ...
1
vote
1
answer
720
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. ...
2
votes
1
answer
3k
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 ...
2
votes
0
answers
276
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
1
answer
1k
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
1
answer
125
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 ...
1
vote
0
answers
189
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
1
answer
533
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 "...
1
vote
2
answers
2k
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
0
answers
1k
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
1
answer
992
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
1
answer
2k
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
1
answer
299
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 ...
2
votes
2
answers
2k
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
1
answer
1k
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
1
answer
5k
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
0
answers
324
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
1
answer
779
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
1
answer
83
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 ...
1
vote
1
answer
1k
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
0
answers
153
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 &...