Error 404 but i have dns records A

Hello All!
I know that this topic has gotten everyone, but the obvious solution does not work for me.
Help!

certbot --apache -d cloud.maggroup.ru
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for cloud.maggroup.ru
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. cloud.maggroup.ru (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://cloud.maggroup.ru/.well-known/acme-challenge/Hji7-TeuDdDtRQyGLsM4w__Kg6AV99hIXEq-tEUWp0c [136.243.153.28]: “\n\n404 Not Found\n\n

Not Found

\n<p”

IMPORTANT NOTES:

Hi @vosona

that says: Your configuration is buggy or Certbot doesn't understand your configuration.

What says

apachectl -S

achectl -S

VirtualHost configuration:
*:80 is a NameVirtualHost
default server cloud.maggroup.ru (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost cloud.maggroup.ru (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost cloud.maggroup.ru (/etc/apache2/sites-enabled/nextcloud.conf:1)
ServerRoot: “/etc/apache2”
Main DocumentRoot: “/var/www/html”
Main ErrorLog: “/var/log/apache2/error.log”
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: “/var/run/apache2/apache2.pid”
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name=“www-data” id=33
Group: name=“www-data” id=33

There

you see the problem. Two vHosts with the same port and the same domain name.

Delete one.

Every combination of port and domain name must be unique.

Thanks a lot! It helped me))

1 Like

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