Unable to find virtual host listening on port 80

I am currently following the certbot guide, to install let’s encrypt on my AWS EC2 instance and get the free certificate. This is the guide I am following https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-ami.html#lets-encrypt-alami. So the problem I am facing now is this.

I reached the part where I had to type in my domain name when this error appeared.

Do you have any site configured in your Apache configuration files? certbot assumes there’s at least one <VirtualHost> directive listening on port 80.

No I have not added any, simply ?`<VirtualHost *:80>
DocumentRoot “…”
ServerName example.com
ServerAlias www.example.com

# Other directives here



Perfect got it all working now, thanks!

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