7 – How do I set up HTTPS on a multi-site?

Alright .. solution time. Found a solution.. took me a little while to understand.
(I, um, guess there’s more than one way to skin a cat.. and more than one way to do multi site. This is a solution that works with my particular setup)

So the first step is to set up a virtual host (Once again I’m using Ubuntu.. version 14.04 if you wanna know.. although I’d bet the overall steps would work for any other distribution even if the details were slightly different)

So I set up a virtual host as described here: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

So for like, domain1.com on my multisite instillation, my virtual host file looked like this, more or less

<VirtualHost *:80>
    ServerAdmin myemail@gmail.com
    ServerName domain1.com
    ServerAlias www.domain1.com
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

My DocumentRoot is exactly the same as my drupal base instillation
Also, my DNS doesn’t use www so .. I’m not sure if I really needed that ailas but I had it

Then.. for this domain.. I had to use LetsEncrypt and got a free certificate as described here: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04

(And I had to open port 443 to traffic on my server too .. I was using AWS and they use a thing called “security groups” so I added port 443 to the server’s security group on the admin panel)

And then.. bingo! My site in my multisite setup can use https now. I expect I would have to simply just repeat the steps for any other sub-site that I want to use https for. I feel like there would be a way to use some kind of like… multi domain certificate.. for like, every site.. somehow …
But this way is free and doesn’t take too long!