<div dir="ltr"><div dir="ltr">On Wed, Jul 15, 2020 at 8:30 PM Charles M <<a href="mailto:chaslinux@gmail.com">chaslinux@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have 3 domains on the same virtual host. Currently one of the<br>
domains is using certbot for https and I have that site redirecting<br>
http to https. That site is running Drupal.<br>
<br>
Another site wasn't included in the https but redirected to another<br>
server that defaulted to https.  I just finished setting up that site<br>
as a drupal multi-site under the first site. http to that domain works<br>
(but https does not yet).<br>
<br>
The third domain is currently parked with the company I bought the<br>
domain from, but I am setting it up to also be drupal multi-site.<br>
<br>
Because I haven't told DNS to look at the host for the 3rd domain I'm<br>
wondering if I should lay off setting up<br>
/etc/sites-available/3rd-domain.conf and (and adding the 3rd domain to<br>
sites.php) enabling it? Thinking the process is enabling DNS for the<br>
3rd domain first, wait for DNS to propagate, then start setting up the<br>
apache sites-available file and sites.php for the 3rd domain.<br>
<br>
If I remember correctly certbot will create a 2nd-domain-le-ssl.conf<br>
and 3rd-comain-le.ssl.conf if I tell certbot:<br>
<br>
certbot-auto -d <a href="http://domain1.com" rel="noreferrer" target="_blank">domain1.com</a> -d <a href="http://domain2.com" rel="noreferrer" target="_blank">domain2.com</a> -d <a href="http://domain3.com" rel="noreferrer" target="_blank">domain3.com</a><br></blockquote><div><br></div><div>I do have 4 Drupal sites running on a single certbot certificate.</div><div><br></div><div>The way I created the certificates was:</div><div><br></div><div>First install certbot</div><div><br></div><div>#   sudo apt-get update<br>#   sudo apt-get install software-properties-common<br>#   sudo add-apt-repository universe<br>#   sudo add-apt-repository ppa:certbot/certbot<br>#   sudo apt-get update<br>#   sudo apt-get install certbot</div><div><br></div><div>Then create the certs.</div><div><br></div><div>certbot certonly --standalone -d <a href="http://dom1.com">dom1.com</a> -d <a href="http://www.dom1.com">www.dom1.com</a> -d <a href="http://dom2.com">dom2.com</a> -d <a href="http://www.dom2.com">www.dom2.com</a> ....</div><div><br></div><div>I had to explicitly say <a href="http://example.com">example.com</a> and <a href="http://www.example.com">www.example.com</a> for each domain.<br></div><div><br> </div></div></div>