daily pastebin goal
66%
SHARE
TWEET

HAProxy SSL HTTPS Configuration

Mayur_Pipaliya Jan 5th, 2014 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. # TEST ENV. CentOS 5.x / 32bit / 128MB Memory
  2. # HAPROXY LISTENING FRONT IP 207.68.222.222
  3. # BACKEND NODE IP 8.8.8.8
  4.  
  5. global
  6.         log 127.0.0.1   local0
  7.         #log 127.0.0.1   local1 notice
  8.         #log loghost    local0 info
  9.         maxconn 4096
  10.         #chroot /var/lib/haproxy
  11.         user haproxy
  12.         group haproxy
  13.         daemon
  14.         #debug
  15.         #quiet
  16.  
  17. defaults
  18.         log     global
  19.         mode    tcp
  20.                 option redispatch
  21.                 option tcplog
  22.         retries 3
  23.         maxconn 3000
  24.         contimeout      5000
  25.         clitimeout      50000
  26.         srvtimeout      50000
  27.  
  28.  
  29. # HTTP Back: 8.8.8.8 && Front: 207.68.222.222
  30. listen http_front 207.68.222.222:80
  31.          mode tcp
  32.          balance roundrobin
  33.          server svr1 8.8.8.8:80
  34. #        server svr2 93.115.86.109:80
  35.  
  36. # HTTPS Back: 8.8.8.8 && Front: 207.68.222.222
  37. listen ssl  207.68.222.222:443
  38.   tcp-request inspect-delay 2s
  39.   acl is_ssl req_ssl_ver 2:3.1
  40.   tcp-request content accept if is_ssl
  41.   server www-ssl 8.8.8.8:443
  42.   timeout client 30m
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top