I've been running nginx for several years with multiple domains and this is the first time I've enabled SSL for one of them. The problem I created is if I put https before any of my non-https domains they find the security certificate installed, give a warning about the domain being wrong, and then loads the wrong website.
SSL installed (listen 443) website1.com
Visit https://(any other website on the server) and it loads loads website1.com.
I tried all manner of rejecting 443 connections in the config for the non-https domains but I am getting security certificate errors when I do that.
How do I tell nginx to reject ssl connections for the non-https domains? Why are the non-https domain's (that are not configured to listen for 443 doing that anyway, & how do I stop this?)
Here is the config for the ssl enabled domain (running drupal): http://pastebin.com/3Pg2wMzR
Here is a pretty basic config for the non-ssl domains (there are about 10): http://pastebin.com/7NcdJrkE
I know these config files are not the pinnacle of greatness, they are taken from various sites/tutorials around the web.