Hi,
when I run the command sudo certbot --apache for all virtualhosts in my ubuntu/apache, I get the invalid / unauthorized as a response for each virtual host. If I head to let'sdebug.net to check the mobilitx.net url, I get this:
You need to fix your webserver configuration like the error tells you. You may get better results here if you complete all of the help template as requested instead of deleting it.
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
Not sure if I get the question right, I coded the virtual host .conf file as shown above, that's all I can say I guess. Shall I change the port 80 with 443?
I followed this guide:
Yes. That will fix your HTTPS and leave you without HTTP. Be sure to follow through and create the necessary HTTP vhosts on port 80.
You missed a couple of key steps in that guide. I added the emphasis in the excerpt below.
Make sure that you have valid configurations for both HTTP and HTTPS and you should find things starting to work as expected.
Once you have your Let's Encrypt certificates, be sure to update your HTTPS vhost configurations to point to the appropriate certificate symlinks under /etc/letsencrypt/live/$domain.