Cloudfare 403 ERROR
Hello, I have a wordpress site and trying to use cloudfront in order to improve the website response time. I followed the steps in the article below: https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-cloudfront/ I completed all the steps and modified C:\Windows\System32\drivers\etc\hosts on my computer so that the domain name of my site points to the ip address of my cloudfare distribution. (when I ping www.domain.com => I get the ip address of my distribution).
When I put the domain name of my site on a browser, I get the response below:
403 ERROR The request could not be satisfied. Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: SVH3QfYg-qs-TkAfBIrIkFH-Er0R-V1aJGjORaub7-ApZ5Vdte372w==
What did I do wrong ??
when I enter the distribution address XXXXXX.cloudfront.net, it also points to the same error!!??
Not an answer (just a follow up of the Q)
There seems to be some configuration error in your Wordpress site. You say that "when I put the domain name of my site in a browser" that you get a 403 error. That's the HTTP error code for "Forbidden" - you don't have access. You'll need to fix that problem first so that you can get to your Wordpress site in a browser; then you can use CloudFront as the CDN.
However: That you are getting a 403 error means that the web server is running and is providing a response. So that's a start.
CloudFront giving access denied to subfoldersasked a year ago
How can I use the same domain name in different AWS accounts?asked 3 years ago
Cloudfare 403 ERRORasked a month ago
Access Denied error when accessing Cloudfront url image linkasked a month ago
how do i fix my SMTP error on my WP site?asked 2 months ago
I need some help about lightsail wordpress. Plz give me some advice!asked a month ago
How to handle path-based routing for SPA when CloudFront has multiple behaviors?asked 2 months ago
Using Lightsail with Cloudfrontasked 2 years ago
403 Error Using Browser - Expressvpn/My Account Sectionasked 16 days ago
Wordpress Multisite - ERROR: Cookies are blockedasked 2 years ago