Welcome! Log In Create A New Profile

Advanced

multiple https vhosts with wildcard

Posted by revirii 
multiple https vhosts with wildcard
November 17, 2011 08:22AM
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
Re: multiple https vhosts with wildcard
November 28, 2011 02:55AM
hmmm... as no one answered and i couldn't find any further informations on the web, i have to assume nginx isn't able to handle the above scenario. What a pity.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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