HAProxy NGInx SSL setup

Posted by Niclas on Server Fault See other posts from Server Fault or by Niclas
Published on 2012-04-26T13:22:29Z Indexed on 2012/12/13 17:05 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

I've been looking around different setups for a server cluster supporting SSL and I would like to benchmark my idea with you.

Requirements:

  • All servers in the cluster should be under the same full domain name. (http and https)
  • Routing to subsystems is done on URI matching in HA proxy.
  • All URIs have support for SSL support.

Wish:

  • Centralizing routing rules

            ---<----http-----<--
            |                  |
    Inet -->HA--+---https--->NGInx_SSL_1..N
                |
                |
                +---http---> Apache_1..M
                |
                +---http---> NodeJS
    

Idea: Configure HA to route all SSL traffic (mode=tcp,algorithm=Source) to an NGInx cluster turning https traffic into http. Re-pass the http traffic from NGInx to the HA for normal load-balancing which performs load balancing based on HA config.

My question is simply: Is this the best way to to configure based on requirements above?

© Server Fault or respective owner

Related posts about nginx

Related posts about ssl