Welcome! Log In Create A New Profile

Advanced

Wildcard SSL and Wildcard hostnames

May 11, 2015 07:11AM
Hey there, I'm struggling to find the correct answer and unsure if there even is one.

We have a domain say, example.co and we've purchased a wildcard SSL certificate for it. We want to be able to provide what amounts to....with minimal configuration.

https://example.co
https://blah.example.co
https://somerandomsubdomain.example.co

all pointing at the same server so something like

server {
port 443
server_name example.co *.example.co;

ssl on;
ssl_protocols .....;
ssl_ciphers .....;
ssl_prefer_server_ciphers on;
ssl_certificate /data/nginx/ssl/example.co.crt;
ssl_certificate_key /data/nginx/ssl/example.co.key;
}

This doesn't appear to work as I would expect it to. Would we need to set up a different server for each subdomain explicity. or could we get away with one config for example.co and another for *.example.co? I've seen examples of using the same ssl key for different virtual servers with different hostnames but not pointing to the same one.

Anyone else have any joy with a similar config?

--
Subject Author Posted

Wildcard SSL and Wildcard hostnames

braindeaf May 11, 2015 07:11AM

Re: Wildcard SSL and Wildcard hostnames

B.R. May 11, 2015 07:34AM

Re: Wildcard SSL and Wildcard hostnames

Reinis Rozitis May 11, 2015 07:38AM

Re: Wildcard SSL and Wildcard hostnames

braindeaf May 11, 2015 09:54AM

Re: Wildcard SSL and Wildcard hostnames

itpp2012 May 11, 2015 10:15AM

Re: Wildcard SSL and Wildcard hostnames

braindeaf May 11, 2015 10:26AM

Re: Wildcard SSL and Wildcard hostnames

B.R. May 11, 2015 10:00AM

Re: Wildcard SSL and Wildcard hostnames

Reinis Rozitis May 11, 2015 10:58AM

Re: Wildcard SSL and Wildcard hostnames

braindeaf May 11, 2015 11:23AM

Re: Wildcard SSL and Wildcard hostnames

Reinis Rozitis May 11, 2015 12:00PM

Re: Wildcard SSL and Wildcard hostnames

ron ramos May 12, 2015 05:14AM

Re: Wildcard SSL and Wildcard hostnames

itpp2012 May 11, 2015 09:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
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