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

398 questions
0
votes
1 answer

Static website cname problem, cloudfront

Hey guys, one quick question. I've got a problem setting the cname for my domain http://snaremedia.com . I use godaddy and set the www cname to point at my cloudfront url, but currently my domain only work through entering www. and not without the…
Ulrik M
  • 1
  • 1
0
votes
0 answers

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 from EC2's disk excepting: /app/ path which proxies…
David QC
  • 83
  • 2
  • 4
0
votes
0 answers

trying to link route 53 to a cloudfront distribution

Here's my CloudFront distribution: When I try to get Route 53 to route to that CloudFront distribution, per the instructions at https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html, it can't find…
neubert
  • 317
  • 8
  • 26
0
votes
1 answer

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 S3 A record example.com -->…
0
votes
1 answer

Using Nginx reverse proxy with CloudFront

We have a domain served by CloudFront and now we need to add a reverse proxy using Nginx (unfortunately the reverse proxying capabilities of CloudFront are insufficient for our use case). My question is, where should we put this Nginx…
0
votes
0 answers

How do I have the root of an AWS API gateway reject methods other than GET and POST

I have an API using lambdas and deployed in AWS. The API is coded in .Net Core and the front is coded in angular15. I need that any method that is not GET or POST be rejected when is called from the base URL of the web application. When I test the…
0
votes
1 answer

What is the recommended configuration for lower latency(TTFB) for Route 53 for CloudFront in future proof way

I'm new to AWS. I use CloundFront for host a fully static website under custom domain name + https. Im trying to understand [without success] how to configure Route 53 to get best result location-wise for a single country and make it work for…
0
votes
0 answers

CNAME not working in Lightsail Custom Domain

I have a domain named xyz.com. Custom domain has the domain in it. It is registered outside AWS and Name Server is pointed to AWS Custom Domain in Lightsail. Here is the setup for it. Lightsail container hosts NextJS. AWS Cloudfront CDN in…
0
votes
1 answer

Logging custom request headers with AWS CloudFront

What is the best way to log custom HTTP headers like X-Foo: bar received by CloudFront? I haven't tried Real-time logs, but Standard access logs seem to log only the pre-defined set of fields/headers. My custom ones do not show up in…
Greendrake
  • 1,391
  • 2
  • 13
  • 22
0
votes
1 answer

S3 / Cloudfront / Load balancer Architecture explanation needed

My architecture is like so: I have a static website xyz.com hosted on s3 and served with cloudfront. The website is accessing an api that seats behind a load balancer. I want to make sure that only requests from my website xyz.com are allowed…
0
votes
0 answers

How to serve both static and dynamic content via AWS cloudfront?

I have a site hosted on a digital ocean droplet which serves both static and dynamic content. The static content (e.g. /images, /js, /css, /fonts) is served from an s3 bucket with folders /images, /js, /css, /fonts via cloudfront which has a path…
adam78
  • 119
  • 1
  • 3
0
votes
0 answers

Web access firewall not working with HTTPS but working with HTTP Azure frontdoor

I have installed SSL certificate for Azure front door and set the policy to access the website with particular IPs. With HTTP I am a not able access the website which is correct according to the policy from the outside of the network. But when I am…
0
votes
0 answers

Is there an easy way to link AWS Cloudfront authorization to Google Workspaces?

Is there an easy way to link AWS Cloudfront authorisation to Google Workspaces? I'm trying to achieve single sign on to a Cloudfront hosted static website such that anyone with a corporate email address (from google workspaces) can sign in. What I…
0
votes
1 answer

Getting 403 (Forbidden) when try to load an S3 file from AWS CloudFront behaviour

I have created an S3 bucket. All objects are publicly accessible. I can access the image file via S3 url: https://S3_BUCKET_NAME.s3.eu-west-1.amazonaws.com/xyz.jpg I can access the image file via CloudFront root url:…
0
votes
0 answers

Route 53 anything works but , or www.

I've been suffering with these DNS settings for a while, and finally made a bit of progress. I have a cloudfront distribution that points to an s3 bucket. Works properly when visiting the cloudfront dns. The certificate is of course assigned, and…