0

I have a React app using create-react-app running on an EC2 and I configured my Cloudflare domain to point to it, everything was working fine - I can access the app both through the IPv4 and through the domain. But then I changed my React app to use https instead of http, and I can no longer access it through the domain - but accessing it through the IPv4 works just fine as before.

What might be the problem here?

5
  • 1
    When successfully accessing the site via the v4 IP address, are you using https or http? Commented Oct 17, 2024 at 14:43
  • 1
    What SSL mode do you have configured in Cloudflare? Flexible, Full, Strict, Automatic? Commented Oct 17, 2024 at 17:32
  • @jarmod so I was running http at first - accessing the site using the domain and IPv4 both worked fine. Then, I made the site https - and after that I could only access through the IPv4 not domain. Commented Oct 18, 2024 at 13:20
  • @MarkB I have flexible on Commented Oct 18, 2024 at 13:21
  • There has to be something missing here. Perhaps you need to describe exactly what you did when you "changed my React app to use https instead of http". Also, when you say you can "no longer access it through the domain" what is the actual, specific, error message you get? Commented Oct 19, 2024 at 18:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.