Welcome! Log In Create A New Profile


Can use different certificates on backends, each with a different server_name

Posted by Abson 
Can use different certificates on backends, each with a different server_name
August 14, 2019 06:33AM
I currently have one load balancer and four backends server configured to proxy_pass several subdomains under one domain using https protocol.
The ssl certificate for this domains are all defined on the Load balancer and the backend server. I believe the load balancer is the one serving the certificate due to the fact that once i remove certificates entries from it my sites stops working.

Currently the system is working fine my challenge now is that I need to add another domain with its own certificate. My nginx.conf on the loader balancer where I declared upstream servers does not allow me to add another block. The moment I try adding the block I get errors. I have attached my nginx.conf of the load balancer.

I have configured ssl for the new domain on the backends but the moment I browse the domain it gets the certificate of the first domain possible becoz its not declared on the load balancer. My question is how can achieve this scenario. I have attached my nginx.conf the commented lines indicate lines which were making nginx fail.

I am still a learning Nginx if you can kindly check my configures and assist.
open | download - nginx.conf (820 bytes)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready