I attempted to issue a cert on a website. I issued the command:
sudo ./certbot-auto -d mydomain.com
I was asked if I wanted to always redirect HTTP to HTTPS and selected yes - I’m pretty sure this was my mistake (as there was already a working config set up). The server uses both apache and nginx. After running the command, apache will not start and I’m pretty sure the problem is this from the output:
Added an HTTP->HTTPS rewrite in addition to other RewriteRules; you may wish to check for overall consistency. Redirecting vhost in /etc/apache2/sites-available/mydomain.conf to ssl vhost in /etc/apache2/sites-available/mydomain.com-le-ssl.conf
I’m pretty sure this has injected something I don’t want to have in my apache config which is causing a port conflict as apache will not start with the message:
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address 127.0.0.1:443
no listening sockets available, shutting down
Now I’m no apache expert so the question is, what would have been injected into the config that I should delete to get it back to how it was before?
In short, since running that command I cannot run both apache and nginx at the same time.