From 99ed327d6269eeddfd15b5fdb7ad22ffde41a83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyril=20Bont=C3=A9?= Date: Sun, 24 Jan 2010 23:29:44 +0100 Subject: [PATCH] [CLEANUP] Keep in sync "defaults" support between documentation and code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- doc/configuration.txt | 6 +++--- src/cfgparse.c | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) 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