Bonjour,
Pour mon site web leval.info, j'essaie de créer un certificat HTTPS avec certbot / Let's encrypt.
je reçois l'erreur suivante :
Failed authorization procedure. leval.info (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: 2a00:5881:8110:600::1: Invalid response from http://leval.info/.well-known/acme-challenge/vzswdni34LPZtISLEuVjgstuqbKVz_pqfmMkCnWahis: 404
Je ne comprends pas où est le problème, j'ai fait quelques recherches sur internet mais rien trouvé de pertinent.
ci-dessous ma config Apache, j'ai commenté certaines lignes car sinon il me mettait une erreur.
J'aimerais que mon site fonctionne avec/sans le www, et avec une redirection http vers https.
le certificat www.leval.info fonctionne très bien mais pas celui de leval.info …
<VirtualHost *:80>
ServerName leval.info
ServerAlias www.leval.info
RewriteEngine on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName leval.info
RewriteEngine on
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
# Include /etc/letsencrypt/options-ssl-apache.conf
# SSLCertificateFile /etc/letsencrypt/live/leval.info/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/leval.info/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName www.leval.info
DocumentRoot /var/www/leval_info/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.leval.info/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.leval.info/privkey.pem
</VirtualHost>
merci ! belle journée.
PS : encore une info sur ma config Apache (c'est un serveur sous Debian 10 ou je gère une dizaine de sites Wordpress)
root@leval:~# apachectl -S
VirtualHost configuration:
*:80 is a NameVirtualHost
default server leval.info (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost leval.info (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost asso-ades.fr (/etc/apache2/sites-enabled/ades.conf:1)
alias www.asso-ades.fr
port 80 namevhost bevr.fr (/etc/apache2/sites-enabled/bevr.conf:1)
alias www.bevr.fr
port 80 namevhost parquoijecommence.eu (/etc/apache2/sites-enabled/demain.conf:1)
alias www.parquoijecommence.eu
port 80 namevhost domaine-langenberg.eu (/etc/apache2/sites-enabled/domaineLG.conf:1)
alias www.domaine-langenberg.eu
port 80 namevhost ecolieu-langenberg.eu (/etc/apache2/sites-enabled/ecolieu.conf:1)
alias www.ecolieu-langenberg.eu
port 80 namevhost galette.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/galette.conf:1)
port 80 namevhost hypnotherapeute-wissembourg.fr (/etc/apache2/sites-enabled/hypnose.conf:1)
alias www.hypnotherapeute-wissembourg.fr
port 80 namevhost jeanluc.art (/etc/apache2/sites-enabled/jeanluc.conf:1)
alias www.jeanluc.art
port 80 namevhost leval.info (/etc/apache2/sites-enabled/leval_info.conf:1)
alias www.leval.info
port 80 namevhost listes.asso-ades.fr (/etc/apache2/sites-enabled/listes-ades.conf:1)
port 80 namevhost listes.bevr.fr (/etc/apache2/sites-enabled/listes-bevr.conf:1)
port 80 namevhost listes.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/listes-ecolieu.conf:1)
port 80 namevhost listes.leval.info (/etc/apache2/sites-enabled/listes-leval.conf:1)
port 80 namevhost listes.parquoijecommence.eu (/etc/apache2/sites-enabled/listes-pqjc.conf:1)
port 80 namevhost cloud.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/nextcloud.conf:1)
port 80 namevhost pascal-leval.fr (/etc/apache2/sites-enabled/pascalleval.conf:1)
alias www.pascal-leval.fr
port 80 namevhost marche-steinseltz.fr (/etc/apache2/sites-enabled/steinseltz.conf:1)
alias www.marche-steinseltz.fr
port 80 namevhost susana.fr (/etc/apache2/sites-enabled/susana.conf:1)
alias www.susana.fr
*:443 is a NameVirtualHost
default server asso-ades.fr (/etc/apache2/sites-enabled/ades.conf:8)
port 443 namevhost asso-ades.fr (/etc/apache2/sites-enabled/ades.conf:8)
port 443 namevhost www.asso-ades.fr (/etc/apache2/sites-enabled/ades.conf:18)
port 443 namevhost bevr.fr (/etc/apache2/sites-enabled/bevr.conf:8)
port 443 namevhost www.bevr.fr (/etc/apache2/sites-enabled/bevr.conf:18)
port 443 namevhost parquoijecommence.eu (/etc/apache2/sites-enabled/demain.conf:8)
port 443 namevhost www.parquoijecommence.eu (/etc/apache2/sites-enabled/demain.conf:18)
port 443 namevhost domaine-langenberg.eu (/etc/apache2/sites-enabled/domaineLG.conf:8)
port 443 namevhost www.domaine-langenberg.eu (/etc/apache2/sites-enabled/domaineLG.conf:18)
port 443 namevhost ecolieu-langenberg.eu (/etc/apache2/sites-enabled/ecolieu-le-ssl.conf:2)
alias www.ecolieu-langenberg.eu
port 443 namevhost ecolieu-langenberg.eu (/etc/apache2/sites-enabled/ecolieu.conf:8)
port 443 namevhost www.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/ecolieu.conf:18)
port 443 namevhost galette.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/galette.conf:7)
port 443 namevhost hypnotherapeute-wissembourg.fr (/etc/apache2/sites-enabled/hypnose.conf:8)
port 443 namevhost www.hypnotherapeute-wissembourg.fr (/etc/apache2/sites-enabled/hypnose.conf:18)
port 443 namevhost jeanluc.art (/etc/apache2/sites-enabled/jeanluc.conf:8)
port 443 namevhost www.jeanluc.art (/etc/apache2/sites-enabled/jeanluc.conf:18)
port 443 namevhost leval.info (/etc/apache2/sites-enabled/leval_info-le-ssl.conf:2)
alias www.leval.info
port 443 namevhost leval.info (/etc/apache2/sites-enabled/leval_info.conf:8)
port 443 namevhost www.leval.info (/etc/apache2/sites-enabled/leval_info.conf:18)
port 443 namevhost listes.asso-ades.fr (/etc/apache2/sites-enabled/listes-ades.conf:14)
port 443 namevhost listes.bevr.fr (/etc/apache2/sites-enabled/listes-bevr.conf:14)
port 443 namevhost listes.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/listes-ecolieu.conf:14)
port 443 namevhost listes.leval.info (/etc/apache2/sites-enabled/listes-leval.conf:14)
port 443 namevhost listes.parquoijecommence.eu (/etc/apache2/sites-enabled/listes-pqjc.conf:14)
port 443 namevhost cloud.ecolieu-langenberg.eu (/etc/apache2/sites-enabled/nextcloud.conf:7)
port 443 namevhost pascal-leval.fr (/etc/apache2/sites-enabled/pascalleval.conf:8)
port 443 namevhost www.pascal-leval.fr (/etc/apache2/sites-enabled/pascalleval.conf:18)
port 443 namevhost marche-steinseltz.fr (/etc/apache2/sites-enabled/steinseltz.conf:8)
port 443 namevhost www.marche-steinseltz.fr (/etc/apache2/sites-enabled/steinseltz.conf:18)
port 443 namevhost susana.fr (/etc/apache2/sites-enabled/susana.conf:9)
port 443 namevhost www.susana.fr (/etc/apache2/sites-enabled/susana.conf:19)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex fcgid-proctbl: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
Mutex fcgid-pipe: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33
Dernière modification par le_lutin (06-06-2022 14:33:05)