Welcome! Log In Create A New Profile

Advanced

Re: if statement + ssl_certificate?

Jonathan Matthews
June 01, 2013 04:56PM
On 1 June 2013 18:32, natostanco <nginx-forum@nginx.us> wrote:
> I guess either I can't
> declare a server with server_name equal to a subdomain of an already
> declared TLD.

That's not the case. Nginx can do this just fine.

You're coming up against the age-old SSL virtual hosting problem,
which is caused by the server's SSL certificate having to be presented
to the client before the Host header is known. This is a problem for
all HTTP servers, and is the reason why (for most cases) you need
multiple IPs when hosting multiple sites over HTTPS. There are
exceptions to this, and your situation happens to be one of these.
Google "wildcard SSL certificate" to discover the sort of cert you'd
have to buy to take advantage of this.

"SNI" is the long-term fix for this, but as client support for it is
not yet near ubiquitous, it's probably not applicable to your
situation. If you absolutely control all the clients, it can be an
option.

HTH,
Jonathan

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

if statement + ssl_certificate?

natostanco May 31, 2013 01:25PM

Re: if statement + ssl_certificate?

Richard Stanway May 31, 2013 02:34PM

Re: if statement + ssl_certificate?

natostanco June 01, 2013 11:50AM

Re: if statement + ssl_certificate?

Jonathan Matthews June 01, 2013 12:06PM

Re: if statement + ssl_certificate?

natostanco June 01, 2013 12:18PM

Re: if statement + ssl_certificate?

Jonathan Matthews June 01, 2013 01:12PM

Re: if statement + ssl_certificate?

natostanco June 01, 2013 01:17PM

Re: if statement + ssl_certificate?

B.R. June 01, 2013 01:22PM

Re: if statement + ssl_certificate?

natostanco June 01, 2013 01:32PM

Re: if statement + ssl_certificate?

B.R. June 01, 2013 03:00PM

Re: if statement + ssl_certificate?

Jonathan Matthews June 01, 2013 04:56PM

Re: if statement + ssl_certificate?

natostanco June 02, 2013 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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