Make Apache NOT listen on port 443 for some domains
<p>I have an Apache server set up to listen on port 80 for a few domains and 443 on two of them (at least that's what I'd want).
So I have my Virtualhost *:443 with "my-ssl-domain.com" and "my-other-ssl-domain.com" ServerName. Both domains also have a Virtualhost *:80 that simply redirects to the HTTPS version using mod_rewrite. I'm using let's encrypt for both of them.</p>

<p>I also have multiple (>10) other domains that should only work via HTTP.</p>

<p>What happens is that if I go to "<a href="https://www.my-non-ssl-domain.com" rel="nofollow">https://www.my-non-ssl-domain.com</a>" browsers complain that there's no valid certificate. Google seems to also index that page and I'd like to avoid it as it seems to be bad SEO.</p>

<p>I'd like it to 301 redirect "<a href="https://www.my-non-ssl-domain.com" rel="nofollow">https://www.my-non-ssl-domain.com</a>" to "<a href="http://www.my-non-ssl-domain.com" rel="nofollow">http://www.my-non-ssl-domain.com</a>" or at least not answer at all, as if the domain with HTTPS simply did not exist.</p>

<p>How can I fix this?</p>