Letsencrypt Challenge did not pass

Letsencrypt is no longer renewing certificates - discovered the hard way when i started getting SSL errors.

Checked the Letsencrypt app in app center and it has this status

Current status of the App

ValueError: Challenge did not pass for my.domain: {u’status’: u’invalid’, u’challenges’: [{u’status’: u’invalid’, u’validationRecord’: [{u’url’: u’ht tp://my.domain/.well-known/acme-challenge/5N7mt-qOFH1f0YPjINDLWEVWFvRemFBs85-7W2xHu7o’, u’hostname’: u’my.domain’, u’addressUsed’: u’’, u’port’: u’80’, u’addressesResolved’: [u’’]}, {u’url’: u’http s://my.domain/%5bhttps:/my.domain/.well-known/acme-challenge/5N7mt-qOFH1f0YPjINDLWEVWFvRemFBs85-7W2xHu7o’, u’hostname’: u’my.domain’, u’addressUsed’: u’’, u’port’: u’443’, u’addressesResolved’: [u’’]}], u’url’: u’htt ps://acme-v02.api.letsencrypt.org/acme/chall-v3/241639915217/mY2oFw’, u’token’: u’5N7mt-qOFH1f0YPjINDLWEVWFvRemFBs85-7W2xHu7o’, u’error’: {u’status’: 403, u’type’: u’urn:ietf:params:acme:error:unauthorized’, u’detail’: u’ Invalid response from htt ps://my.domain/%5bhttps:/my.domain/.well-known/acme-challenge/5N7mt-qOFH1f0YPjINDLWEVWFvRemFBs85-7W2xHu7o: 404’}, u’validated’: u’2023-07-01T08:29:51Z’, u’type’: u’http-01’}], u’identifier’: {u’type’: u’dns’, u’value’: u’my.domain’}, u’expires’: u’2023-07-08T08:29:48Z’}

I broke the server trying to fix it with google (i had to restore from a backup)
Port 80 works, there is a permanent port 80 to 443 redirect somewhere (deleted contents of httpd.conf but its still redirecting)

Any ideas for the cause?