All pastes #383577 Raw Edit

jink

public text v1 · immutable
·published 2007-03-06 14:02 UTC
rendered paste body
# NODE 1, 2, 3, etc

Listen *:443
Listen *:444
Listen *:445
# etc

<VirtualHost *:443>
  ServerName site1.com
  # certificate stuff and rest of regular options
</VirtualHost>

<VirtualHost *:444>
  ServerName site2.com
  # certificate stuff and rest of regular options
</VirtualHost>

<VirtualHost *:445>
  ServerName site3.com
  # certificate stuff and rest of regular options
</VirtualHost>


# LOAD BALANCER

# assume site1.com points to ip1, site2.com to ip2, site3.com to ip3
# fix them each their own pool:
# pool for ip1:443 => node1:443 + node2:443 + node3:443
# pool for ip2:443 => node1:444 + node2:444 + node3:444
# pool for ip3:443 => node1:445 + node2:445 + node3:445

# your loadbalancer takes the public ips, and forwards those to your private ips, on different ports.