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. https://crt.sh/?q=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: joomla4.mytechsite.gq
I ran this command: sudo certbot --apache
It produced this output: Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
What would you like to do?
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Deploying certificate
Successfully deployed certificate for joomla4.mytechsite.gq to /etc/apache2/sites-enabled/joomla4.conf
Failed redirect for joomla4.mytechsite.gq
Unable to set the redirect enhancement for joomla4.mytechsite.gq.
NEXT STEPS:
The certificate was saved, but could not be installed (installer: apache). After fixing the error shown below, try installing it again by running:
certbot install --cert-name joomla4.mytechsite.gq
My web server is (include version): Ubuntu 22.04 (fully updated and upgraded)
The operating system my web server runs on is (include version): Apache/2.4.52 (Ubuntu)
My hosting provider, if applicable, is: VPS Oracle
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 1.21.0
VirtualHost configuration:
*:443 joomla3.mytechsite.gq (/etc/apache2/sites-enabled/joomla3b-le-ssl.conf:2)
*:80 is a NameVirtualHost
default server 132.145.57.84 (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost 132.145.57.84 (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost joomla3.mainsite.tk (/etc/apache2/sites-enabled/joomla3.conf:1)
alias www.joomla3.mainsite.tk
port 80 namevhost joomla3.mytechsite.gq (/etc/apache2/sites-enabled/joomla3b.conf:1)
alias www.joomla3.mytechsite.gq
port 80 namevhost joomla4.mytechsite.gq (/etc/apache2/sites-enabled/joomla4.conf:1)
alias www.joomla4.mytechsite.gq
port 80 namevhost oracle.mainsite.tk (/etc/apache2/sites-enabled/oracle.conf:1)
alias www.oracle.mainsite.tk
port 80 namevhost phpmyadmin.mainsite.tk (/etc/apache2/sites-enabled/phpmyadmin.conf:1)
alias www.phpmyadmin.mainsite.tk
Do you see anything in the above output that stands out to be the culprit.
I have quite a few subdomains on the server but for some reasons joomla3, & jooml4 are mixed up. Joomla3 works as expected but joomla4 seems to be a real problem.
Can I also mention that Joomla4 is not a risky site. It is completely blank at the moment so the warning you might get is standard Firefox warning message because there is no certificate attached yet..
ubuntu@instance-20230417-0416:~$ sudo systemctl reload apache2
ubuntu@instance-20230417-0416:~$ sudo certbot install --cert-name joomla4.mytechsite.gq
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Deploying certificate
Could not install certificate
Could not reverse map the HTTPS VirtualHost to the original
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ubuntu@instance-20230417-0416:~$
Depending on the output of: certbot certificates
you may be able to copy the file: /etc/apache2/sites-enabled/joomla3b-le-ssl.conf
as: /etc/apache2/sites-available/joomla4-le-ssl.conf
[then edit the new file and change the "3"s/"3b"s to "4"s]
and then enable it and restart Apache.