Hi,
we have a domain example.com, and several subdomains. For https we have a wildcard certificate for *.example.com.
I've tried the following:
vhostA:
server {
listen 1.2.3.4:443;
server_name a.example.com;
...
}
vhostB:
server {
listen 1.2.3.4:443;
server_name b.example.com;
...
}
(Possibly there will be more vhosts with https, but then for other domains, they'll have a separate ip, just wanted to mention that)
Then i call https://a.example.com and https://b.example.com - but regardless which vhost is called, always the content of vhostA is delivered. How do i configure this to get vhostB to deliver its content? Is it possible to have more than one vhost with https on one IP (same subdomains, wildcard certificate) and how is it done (nginx 1.1.0)?
Apache does it this way: http://wiki.apache.org/httpd/NameBasedSSLVHosts
thx in advance
revirii