Welcome! Log In Create A New Profile

Advanced

Trouble with SSL & multiple domains

Posted by t0lk 
Trouble with SSL & multiple domains
September 09, 2012 11:09PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready