Hi,
Everything seems to work but I do have an error on line 22 (SSLCertificateFile /etc/letsencrypt/live/onearth.studio/fullchain.pem) in httpd-le-ssl.conf file (DocumentRoot "var/www/html") and do not understand why I have a Warning: DocumentRoot [/etc/httpd/var/www/html] does not exist. Why isn't it DocumentRoot [var/www/html]?
My domain is: https://www.onearth.studio
I ran this command:
apachectl -S
It produced this output:
AH00112:Warning: DocumentRoot [/etc/httpd/var/www/html] does not exist
AH00526: Syntax error on line 22 of /etc/httpd/conf/httpd-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/onearth.studio/fullchain.pem' does not exist
or is empty
/etc/lestencrypt/live/onearth.studio/fullchain.pem exists and it is not empty
I ran this command:
sudo certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/onearth.studio.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Simulating renewal of an existing certificate for onearth.studio and www.onearth.studio
Performing the following challenges:
http-01 challenge for onearth.studio
http-01 challenge for www.onearth.studio
Waiting for verification...
Cleaning up challenges
new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/onearth.studio/fullchain.pem
Congratulations, all simulated renewals succeeded:
/etc/letsencrypt/live/onearth.studio/fullchain.pem (success)
before I deployed http://www.onearth.studio (var/www/html/index.html) without any issue, since https I got the Apache test page instead!
My web server is (include version): Apache/2.4.46
The operating system my web server runs on is (include version): amzn2.x86_64 #1 SMP Mon A
pr 19 23:20:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
My hosting provider, if applicable, is: AWS
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.14.0
Thank you for your assistance,
Jan