I’m running a web server on an AWS EC2 Linux AMI with Apache 2.4, PHP 7, and MySQL. When I try to run Certbot, I get an error saying I need to add a virtual host for port 80.
I’ve looked at other solutions online, but they are either not specific to the EC2 Linux AMI or more complicated than necessary. Most of the solutions seem to involve
/sites-enabled, but the main
.conf file already has a line pointing to additional
.conf files, so I don’t need to add another line.
If you're running a web server on an AWS EC2 Linux AMI with Apache 2.4, PHP 7, and MySQL, you may encounter an error when trying to run Certbot, which states that you need to add a virtual host for port 80. While there are numerous solutions available online, many are either overly complicated or not specific to the EC2 Linux AMI. One common solution involves modifying the `/sites-available` or `/sites-enabled` directories, but this may not be necessary if the main `.conf` file already includes a line pointing to additional `.conf` files.