Advertisement
Guest User

Untitled

a guest
Dec 29th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Here is my haproxy fornt-end config:
  2.  
  3. #WORKING
  4. frontend osconsoleproxy
  5.         bind 10.0.0.58:6080
  6.         option tcplog
  7.  
  8.         acl url_path path /vnc_auto.html
  9.         acl param_token urlp_reg(token) [0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]{1,36}$
  10.         acl param_keykey1 urlp(key) console1
  11.         acl param_keykey3 urlp(key) console3
  12.  
  13.         default_backend control1-backend
  14.    
  15.         tcp-request inspect-delay 2s
  16.         tcp-request content accept if param_keykey1
  17.  
  18. #NOT-WORKING
  19. frontend osconsoleproxy
  20.         bind 10.0.0.58:6080
  21.         option tcplog
  22.  
  23.         acl url_path path /vnc_auto.html
  24.         acl param_token urlp_reg(token) [0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]+-[0-9a-fA-F]{1,36}$
  25.         acl param_keykey1 urlp(key) console1
  26.         acl param_keykey3 urlp(key) console3
  27.        
  28.         use_backend control1-backend if param_keykey1
  29.        
  30.         tcp-request inspect-delay 2s
  31.         tcp-request content accept if param_keykey1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement