Failed authorization procedure after inputting webroot

Hello, I’m trying to use certbot to configure my server with letsencrypt (switching from old certs to new certs).
I was following the instructions on https://certbot.eff.org/lets-encrypt/debianstretch-apache and ran the command
sudo certbot --authenticator webroot --installer apache

My DNS records are correct and I’m definitely using the right domain and web root (/var/www), however when I push enter to confirm the webroot I keep getting this error:
(domain.com substituted for actual domain)

Failed authorization procedure. domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://domain.com/.well-known/acme-challenge/X4yIA1OF-eLTfs31TqrPipSwlKAQeYCWucwCZRc3zJc: "<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title>Page Not Found :domain</title>
<meta c"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: domain.com
   Type:   unauthorized
   Detail: Invalid response from
   http://domain.com/.well-known/acme-challenge/X4yIA1OF-eLTfs31TqrPipSwlKAQeYCWucwCZRc3zJc:
   "<!DOCTYPE html>
   <html dir="ltr" lang="en">
   <head>
   <title>Page Not Found : domain</title>
   <meta c"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

Hi @doler443

what’s your domain name? And who is your hoster?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.