Hi I followed this guide to generate a certificate for my domain: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04
I added ServerName my_domain and ServerAlias www.my_domain in /etc/apache2/sites-available/my_domain.conf but the domain is not listed between available sites for https in cerbot.
Any ideas how to fix that? Thank you
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi Bobby, I tried
sudo a2ensite your_domain.conf
but after that I get this message when I runsudo apache2ctl configtest
:I can’t restart apache due to this error.
Thank you
Hi there,
Once you created the Apache virtual host config at the
sites-available
directory, did you runsudo a2ensite your_domain.conf
to enable the config file?Also after enabling the file, you need to run a config test:
And if you get
Syntax OK
, then restart Apache as well:Let me know how it goes. Regards, Bobby