From aa1ea8a9eef6ec2bc225cf303bfad8876cb8f887 Mon Sep 17 00:00:00 2001 From: Olivier Doucet Date: Fri, 5 Aug 2016 17:15:20 +0200 Subject: [PATCH] DOC: minor typo fixes to improve HTML parsing by haproxy-dconv This must be backported to 1.6 and 1.5 --- doc/configuration.txt | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 2a2abd45a..2bfd314e3 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -4421,20 +4421,19 @@ load-server-state-from-file { global | local | none } - server's weight is applied from previous running process unless it has has changed between previous and new configuration files. - Example 1: + Example: Minimal configuration - Minimal configuration: + global + stats socket /tmp/socket + server-state-file /tmp/server_state - global - stats socket /tmp/socket - server-state-file /tmp/server_state + defaults + load-server-state-from-file global - defaults - load-server-state-from-file global + backend bk + server s1 127.0.0.1:22 check weight 11 + server s2 127.0.0.1:22 check weight 12 - backend bk - server s1 127.0.0.1:22 check weight 11 - server s2 127.0.0.1:22 check weight 12 Then one can run : @@ -4447,9 +4446,7 @@ load-server-state-from-file { global | local | none } 1 bk 1 s1 127.0.0.1 2 0 11 11 4 6 3 4 6 0 0 1 bk 2 s2 127.0.0.1 2 0 12 12 4 6 3 4 6 0 0 - Example 2: - - Minimal configuration: + Example: Minimal configuration global stats socket /tmp/socket @@ -4462,6 +4459,7 @@ load-server-state-from-file { global | local | none } server s1 127.0.0.1:22 check weight 11 server s2 127.0.0.1:22 check weight 12 + Then one can run : socat /tmp/socket - <<< "show servers state bk" > /etc/haproxy/states/bk @@ -5187,7 +5185,7 @@ option forwardfor [ except ] [ header ] [ if-none ] the frontend or the backend does not specify it, it wants the addition to be mandatory, so it wins. - Examples : + Example : # Public HTTP address also used by stunnel on the same machine frontend www mode http @@ -10796,7 +10794,9 @@ resolve-prefer Supported in default-server: Yes - Example: server s1 app1.domain.com:80 resolvers mydns resolve-prefer ipv6 + Example: + + server s1 app1.domain.com:80 resolvers mydns resolve-prefer ipv6 resolve-net [,[, Points to an existing "resolvers" section to resolve current server's @@ -10820,9 +10822,11 @@ resolvers Supported in default-server: No - Example: server s1 app1.domain.com:80 check resolvers mydns + Example: - See also chapter 5.3 + server s1 app1.domain.com:80 check resolvers mydns + + See also section 5.3 send-proxy The "send-proxy" parameter enforces use of the PROXY protocol over any @@ -11138,7 +11142,7 @@ timeout