LetsEncrypt certificate is not Working in Centos 7 Apache

Like @_az says, your VirtualHost directives don’t look right. I’m guessing they should be <VirtualHost *:80> and <VirtualHost *:443> instead, but that’s just a guess since I don’t know what your configuration is supposed to be.

It may be that certbot got confused by the invalid syntax when it tried to update your config files, too.

You can refer to the VirtualHost documentation for the description of what the syntax is supposed to be, and run service httpd configtest to see any errors Apache can find in your config files.

2 Likes