From: Cyril Bonté Date: Sun, 24 Jan 2010 22:29:44 +0000 (+0100) Subject: [CLEANUP] Keep in sync "defaults" support between documentation and code X-Git-Tag: v1.4-dev8~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ed327d6269eeddfd15b5fdb7ad22ffde41a83c;p=thirdparty%2Fhaproxy.git [CLEANUP] Keep in sync "defaults" support between documentation and code Hi Willy, I've made a quick pass on the "defaults" column in the Proxy keywords matrix (chapter 4.1. in the documentation). This patch resyncs the code and the documentation. I let you decide if some keywords that still work in the "defaults" section should be forbidden. - default_backend : in the matrix, "defaults" was not supported but the keyword details say it is. Tests also shows it works, then I've updated the matrix. - capture cookie : in the keyword details, we can read `It is not possible to specify a capture in a "defaults" section.'. Ok, even if the tests worked, I've added an alert in the configuration parser (as it is for capture request/response header). - description : not supported in "defaults", I added an alert in the parser. I've also noticed that this keyword doesn't appear in the documentation. There's one "description" entry, but for the "global" section, which is for a different use (the patch doesn't update the documentation). - grace : even if this is maybe useless, it works in "defaults". Documentation is updated. - redirect : alert is added in the parser. - rsprep : alert added in the parser. -- Cyril Bonté --- diff --git a/doc/configuration.txt b/doc/configuration.txt index a591a21f9c..a1383ad77d 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -752,7 +752,7 @@ clitimeout X X X - (deprecated) contimeout X - X X (deprecated) cookie X - X X default-server X - X X -default_backend - X X - +default_backend X X X - description - X X X disabled X X X X dispatch - - X X @@ -762,7 +762,7 @@ errorloc X X X X errorloc302 X X X X errorloc303 X X X X fullconn X - X X -grace - X X X +grace X X X X hash-type X - X X http-check disable-on-404 X - X X id - X X X @@ -1867,7 +1867,7 @@ fullconn grace