By using AWS re:Post, you agree to the Terms of Use

Cloudfare 403 ERROR

0

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 ??

2 Answers
0

when I enter the distribution address XXXXXX.cloudfront.net, it also points to the same error!!??

answered 5 months ago
0

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.

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions