I filled out the questionnaire below but first let me explain my setup. I run apache2 on an Ubuntu server. I run my primary website on port 80/443 and have my domain name (nickdeubert.com), that is encrypted with lets encrypt, that directly goes to it. That all works perfectly.
Now I am running a second site (wendydeubert.com) with a masked domain name that redirects to the site hosted on the same server. I've tried running this site on a different port through apache's configuration (http://nickdeubert.com:446/) or also as a subdirectory of the first site (https://nickdeubert.com/wendy/). The redirect for the site all works exactly like I want, but chrome shows the second site as "Not Secure". I've tried running certbot with apache and webroot for the second site but it always fails. Is there a way to make this work? Do I need to add the second domain to the cert for the first? Is there files I need to include in my webroot? Thanks
I am using namecheap.com and redirecting like this for the second site:
My domain is:
wendydeubert.com
nickdeubert.com
I ran this command and it produced this output::
$ sudo certbot certonly --webroot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): wendydeubert.com
Requesting a certificate for wendydeubert.com
Input the webroot for wendydeubert.com: (Enter 'c' to cancel): /home/www/htdocs/wendy/
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: wendydeubert.com
Type: unauthorized
Detail: 192.64.119.206: Invalid response from http://wendydeubert.com/.well-known/acme-challenge/EXNqE21Br1Y4SWIvFYi5FiuCEuV6ZyEK-82G2ZzKDTo: "\n\n \n "
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Also tried:
$ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: nickdeubert.com
2: www.nickdeubert.com
3: wendydeubert.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 3
Requesting a certificate for wendydeubert.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: wendydeubert.com
Type: unauthorized
Detail: 192.64.119.167: Invalid response from http://wendydeubert.com/.well-known/acme-challenge/2phhEYybRUv7E4W7TrFCfyllKhTf44cCHQKoFzO2QJE: "\n\n \n "
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
My web server is (include version): apache 2.4.52
The operating system my web server runs on is (include version): Ubuntu 22.04.4
My hosting provider, if applicable, is: myself
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): certbot 2.10.0