Questions tagged [amazon-cloudfront]
Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.
403
questions
1
vote
1
answer
41
views
Can I use same subdomain to serve both ColudFront, S3 and Apache?
I'm trying to setting up a application on S3 and CloudFront and the frontend application is using Flutter.
Frontend
I have managed to deployed S3 and CloudFront successfully.
Let's say the domain dev....
0
votes
0
answers
15
views
AWS Cloudfront - headers not thrown from code
I have a static site (Nuxt/Nitro) which has some headers responses (CSP, XSS etc...).
I deployed first on Netlify, I got my custom headers thrown by the code.
I had to change hosting and deploy on AWS ...
0
votes
0
answers
216
views
CloudFront Returns 502
I have configured a CloudFront distribution to point to an application load balancer (ALB). The ALB points to a lambda function. I have configured an A record in Route53 to point to the CloudFront ...
0
votes
0
answers
114
views
How to Deploy React App and WordPress on the Same CloudFront Distribution Domain Name with Different Origins and Behaviors?
I'm encountering challenges deploying both a React app and a WordPress site on the same CloudFront Distribution domain name while utilizing different origins and behaviors.
Here's my setup:
I have a ...
0
votes
1
answer
244
views
Only Https Post requests failing with cloudfront and ec2 instance running nginx reverse proxy
I am running a nodejs server on ec2 on port 3000. In order to connect it to internet, I am running a nginx server to proxy requests from port 80 to 3000.
I have a ec2 domain "http://ec2-xxx....
0
votes
1
answer
95
views
After setting CORS, endpoints of web services are not retrieving data
Well, maybe I am not providing enough information to you all. Hope you can help me, give a clue or hint, or guide me how to advance.
I have an application that is consuming data from a web service. ...
0
votes
0
answers
117
views
AWS CloudFront for multiple subdomain
I have CloudFront for example.com & www.example.com with *.example.com wildcard certificate. But now I want to add w.example.com, ww.example.com & wwww.example.com so i have added these new ...
0
votes
1
answer
794
views
My Cloudfront distribution is showing access denied despite enabling all public access to the bucket objects
I am using the following CF policy in my S3 bucket:
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"...
0
votes
1
answer
381
views
S3 site in Cloudfront Preflight 302 Error
I have a static s3 website hosted through CloudFront. In it, I make a request that will result in a redirect if the user is not logged in. Preflight then fails because of a 302:
Access to fetch at '...
-1
votes
1
answer
171
views
Duplicate wordpress feed url
How to create nginx rules to copy the wordpress feed url. Actually, I want two versions of the feeds, one cached and one not, to simulate AWS Cloudfront cache behaviors. Both urls should function ...
2
votes
0
answers
445
views
Why is CloudFront failing to pass a header from the origin to the client?
I have CloudFront configured with an API Gateway origin. In the application accessed via API Gateway, my application responds to a particular request with a Content-Disposition header so that the data ...
2
votes
1
answer
369
views
How Do I Use The <VirtualHost> Directive To Host Multiple Sites Using An EC2 Instance, ELB, And CloudFront?
I've been really struggling with this for the past few days, and I'm at a lost. Here's what's going on.
I have an EC2 instance (Amazon Linux 2023) behind an ELB and a CloudFront distribution that I ...
0
votes
0
answers
217
views
Utilising AWS Cloudfront for domain which listens on non-443 port
We have a www.domain.com which resolves to a AWS Load Balancer backed by AWS EC2 Nginx instance.
www.domain.com:8888 proxies to a AWS backend web application.
www.domain.com:443 serves static html ...
1
vote
0
answers
760
views
AWS CloudFront 404 error on web root only - node.js with express and pug
The Setup
I have a web site built on node.js, express.js, and pug.js running on an AMI Linux instance in AWS. I've given the instance an Elastic IP and if I browse directly to the generated DNS record ...
0
votes
1
answer
177
views
Proper Setup for a simple AWS S3 website using CloudFront & Route, with base domain and www subdomain
Which is the better design, and why? (see 2 tables)
1. Here is the configuration of my working website (example.com is the prevent domain)
as setup via a Youtube Tutorial...
Route53
Cloudfront Dist
...