Posted On March 29, 2019

HAProxy with Multiple SSL Certs

kimconnect 0 comments
blog.KimConnect.com >> Codes , Linux >> HAProxy with Multiple SSL Certs
Method 1:
———
defaults
  log 127.0.0.1 local0
  option tcplog
 
frontend ft_test
  mode http
  bind 0.0.0.0:443 ssl crt /certs/haproxy1.pem crt /certs/haproxy2.pem
  use_backend bk_cert1 if { ssl_fc_sni dragoncoin.com } # content switching based on SNI
  use_backend bk_cert2 if { ssl_fc_sni kimconnect.com } # content switching based on SNI
 
backend bk_cert1
  mode http
  server srv1 <ip-address2>:80
 
backend bk_cert2
  mode http
  server srv2 <ip-address3>:80

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Convert CSV Into HashTable

This is an illustration of a function to convert a set of CSV contents into…

PowerShell: Replacing Characters Inside Text Files

$textFilesDirectory="C:\Users\$env:computername\Desktop\test" $textFileExtensions='.txt' $regexNewlineOnly="(?<!\r)\n$" $replaceWith="`r`n" function updateFile{ param( $file="C:\Users\$env:username\Desktop\test.txt", $regexMatch="(?<!\r)\n$", $replaceWith="`r`n", $output ) $output=if($output){$output}else{$file} if($file -ne…

How to Add a New Disk as LVM Volume to a Linux Machine without Rebooting

Step 1: Scan all SCSI host controllers sudo su # run as root scsiPath=/sys/class/scsi_host #…