Ubuntu Pastebin

Paste from bdx at Fri, 1 Dec 2017 17:29:35 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$ ./haproxyrelationexample.py 
- backends:
    backend_name: api
    servers:
    - [mytestservice-api, 100.100.100.100, 9001, option httpchk GET /api HTTP/1.0]
  servers:
  - [mytestservice, 100.100.100.100, 9000, option httpchk GET / HTTP/1.0]
  service_host: 0.0.0.0
  service_name: mytestservice
  service_options: [mode http, acl api path_beg -i /api, use_backend api if api]
  service_port: 80
Download as text