Welcome! Log In Create A New Profile

Advanced

Nginx as reverse proxy to various domain with different cert

Posted by ___jul 
Nginx as reverse proxy to various domain with different cert
June 24, 2012 11:54AM
Hi,

I use nginx as reverse proxy to consolidate various server hardware on a same openvz solution server.
But each domain use ssl and different certificate.
I've read and I understand why when a visitor try to access www.domain2 using SSL nginx respond using www.domain1 certificate.
This is why the good practice is to use different ip address.
But in my case I can't.
I use nat to send all the request to my publicip:80 to nginx which will do the filter depending of the servername.

I've read about ssl wild card, but it seems to be a workaround for the same domain.

So how can I do ?
Probably that someone had the same problems, how to solve it.

Thanks for your help

jul
Re: Nginx as reverse proxy to various domain with different cert
July 20, 2012 04:24AM
The only way to use nginx with multiple certificates and NOT using multiple IPs is to use SNI Support ...

This article describs it very good: http://www.carloscastillo.com.ar/2011/05/multiple-ssl-certificates-on-same-ip.html

Problem is that not all browsers support this :-/

regrads
Jens
Re: Nginx as reverse proxy to various domain with different cert
July 21, 2012 04:03AM
I have posted a similar but different question here: http://forum.nginx.org/read.php?11,228815
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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